API referenceEndpointsContactsIdTopics
Update a contact's topics
Opts a contact in or out of topics.
Authorization
apiKey AuthorizationBearer <token>
An API key from the dashboard (ms_…), sent as Authorization: Bearer. A sending-only key reaches the /emails routes only.
In: header
Path Parameters
id*string
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
[index: integer]?
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/contacts/string/topics" \ -H "Content-Type: application/json" \ -d '[ { "id": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e", "subscription": "opt_out" } ]'{ "id": "ae2014de-c168-4c61-8267-70d2662a1ce1"}