Contacts
Update a contact's topics
Opts the contact in to or out of topics (the body is the list of choices). Each choice the contact had not made yet is recorded with its consent event; a write that changed any sends one `contact.updated`.
PATCH
Opts the contact in to or out of topics (the body is the list of choices). Each choice the contact had not made yet is recorded with its consent event; a write that changed any sends one contact.updated.
bearerheader
AuthorizationBearer <token>id*stringThe contact's id or email address
application/json- body
[index: integer]?A topic choice: {id, subscription}.
Success
application/json- response
The answer to a change of a contact's topics: the contact's id.
id*stringFormat
uuidobject*stringcurl -X PATCH 'https://api.exx.sh/contacts/string/topics' \ -H 'Content-Type: application/json' \ -d '[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subscription": "string" }]'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "string"}