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
/contacts/{id}/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.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string

The contact's id or email address

Request Body

application/json
  1. body
[index: integer]?

A topic choice: {id, subscription}.

Response Body

Success

application/json
  1. response

The answer to a change of a contact's topics: the contact's id.

id*string
Formatuuid
object*string
Example Request
curl -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"}