Add or update consent

Use this method to add or update consent details in the specified group. For channel=whatsapp either address or alternateAddress is required; for all other channels address is required and alternateAddress is not applicable. Note- Replace {your_connecttenant_apidomain } in the URL with your hostname to try this API with your environment. See Know your endpoint page.

Path Params
string
required

Unique ID of group

Body Params

A consumer and the desired consent value

Consumer identity and the desired consent value. For channel=whatsapp either address or alternateAddress is required (both may be supplied, and alternateAddress / replaceAlternateAddress apply to WhatsApp only); for all other channels address is required and alternateAddress is not applicable.

string
enum
required

A channel of communication

Allowed:
string

Address for communications sent on this channel.

boolean
required
string
required

Free form text value indicating an arbitrary comment about this record

string

ISO8601 formatted date and time

string

WhatsApp-only consumer identifier (BSUID). Valid only for channel=whatsapp and only accepted when the WhatsApp BSUID feature flag is enabled; must match the configured BSUID format. Requests violating these rules return 400.

boolean
Defaults to false

WhatsApp-only overwrite flag. When true, the supplied alternateAddress overwrites the existing alternateAddress on the consent record. Requires channel=whatsapp and a non-empty alternateAddress; the API returns 400 otherwise. Ignored when the WhatsApp BSUID feature flag is disabled. Write-only: accepted on requests but never emitted in responses.

metadata
object

Optional fields to store extra data along with the consent change request

Responses
204

Consent added or changed

404

Invalid or unknown group ID.

409

Invalid channel type for requested group

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!