Menu

Set a contact's topic choice

PUT/v1/contacts/{id}/topics/{topicId}

Requires an API key with the contacts:write scope. About keys and scopes

Any member, or a key with contacts:write (never an agent key), as for consent. Recorded in consent history with the member or key as actor. With channel, the choice is for that channel only (keep Product updates by email, not by push); without it, it holds for every channel and clears channel choices.

Path parameters

idstringrequired

uuid

topicIdstringrequired

uuid

Request body

subscribedbooleanrequired

True to join the topic, false to leave it.

channelstringoptional

One channel's choice; omitted, the choice holds for every channel.

one of email, push

Returns

Returns 200 OK. Otherwise returns an error; Errors lists every code and which to retry.

idstringrequired

uuid

namestringrequired
descriptionstring | nullrequired
modestringrequired

opt_out reaches everyone who has not left; opt_in only those who joined.

one of opt_out, opt_in

createdAtstringrequired

date-time

updatedAtstringrequired

date-time

subscribedbooleanrequired

Whether campaigns and journey steps on this topic reach the contact.

channelsobjectrequired

The same per channel: a channel's own choice wins over subscribed there.

2 child attributes
emailbooleanrequired
pushbooleanrequired