Set a contact's topic preference (alias of POST)
PUT/api/v1/contacts/{id}/topics
PUT /contacts/{id}/topics
# API: no generated example for PUT https://www.unitpost.com/api/v1/contacts/:id/topicsResponse · 201
{
"object": "contact_topic",
"topic_id": "topic_123",
"channel": "email",
"subscribed": false,
"status": "subscribed",
"source": "user"
}Identical to Set a contact's topic preference — provided so clients that prefer PUT semantics for an upsert can use it interchangeably. Requires the topics:write capability.
Parameters1 field
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
Request body3 fields
| Field | Type | Description |
|---|---|---|
topic_id | string | — |
topic | string | — |
subscribedrequired | boolean | — |
Response · 201 fields6 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
topic_idrequired | string | — |
channelrequired | enumemail | sms | The topic's channel: manage it under `/email/topics` or `/sms/topics`. |
subscribedrequired | boolean | — |
statusrequired | enumsubscribed | unsubscribed | — |
sourcerequired | enumuser | manual | import | api | — |
201401404422