← Back to API Reference

PATCH /contacts/{contact_id}/topics

Update Contact Topics

Update topic subscription state for one contact.

Request (cURL)

curl -X PATCH "http://localhost:8080/v1/contacts/ct_123/topics" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": [
    {
      "id": "top_123",
      "subscribed": true
    },
    {
      "id": "top_456",
      "subscribed": false
    }
  ]
}'

Response Example

{
  "id": "id_123"
}

Request Body Example

{
  "updates": [
    {
      "id": "top_123",
      "subscribed": true
    },
    {
      "id": "top_456",
      "subscribed": false
    }
  ]
}