Update Contact Channel
1import { Reloop } from "reloop-email";2
3const reloop = new Reloop({ apiKey: "rl_123456789" });4
5const { channel, channelError } = await reloop.contacts.channels.updateSubscription(6 "chn_123456789",7 { contact_id: "con_123456789", subscription: "opt_out" },8);9
10if (channelError) throw channelError;11
12console.log(channel.status, channel.success);1{2 "success": true,3 "status": "enrolled",4 "event": "contact.update"5}Path Parameters
channel_idstringRequired
Channel ID
Body Parameters
contact_idstring
Contact ID
emailstring
Contact email address
subscription"opt_in" | "opt_out"Required
Possible values: opt_in | opt_out
Was this page helpful?
- Need help? Contact Support.
- Chat with Reloop developers on Discord.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.