Update contact tags
Add or remove tags on a contact.
PATCH https://cotlet.dev/api/v1/podium/contacts/{contact_id}/tags
write
Adds the tags in add and removes the tags in remove on one contact, like editing tags on the Contacts page. A tag you add is created if it does not exist. Tags reach no customer and one more call undoes the change, so it does not wait for your OK. Automations that filter by contact tag pick the change up on their next run.
Parameters
| Name | Type | Description |
|---|---|---|
| contact_id string required | string | Contact ID from list_contacts. |
| add array | array | Tags to add. |
| remove array | array | Tags to remove. |
Request
curl -X PATCH https://cotlet.dev/api/v1/podium/contacts/contact_8c41d2/tags \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("podium", "update_contact_tags", {"contact_id":"contact_8c41d2"}) const result = await cotlet.call('podium', 'update_contact_tags', {"contact_id":"contact_8c41d2"}); cotlet call podium update_contact_tags --data '{"contact_id":"contact_8c41d2"}' Example response
{
"contact_id": "ct_4410",
"tags": [
"cleaning",
"recall-nov"
]
}