Tag conversation
Add or remove tags on one conversation.
POST https://cotlet.dev/api/v1/help-scout/conversations/{conversation_id}/tag
write
Adds the tags in add and removes the ones in remove, with the Add or remove conversation tags permission your account needs. A tag that does not exist is created by adding it, so check list_tags first. Returns the full tag list after the change. Tags reach no customer and one call undoes the change, so it does not ask for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| conversation_id integer required | integer | Conversation number from search_conversations. |
| add array | array | Tag names to add. |
| remove array | array | Tag names to remove. |
Request
curl -X POST https://cotlet.dev/api/v1/help-scout/conversations/48244/tag \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"add":["billing"]}' result = client.call("help-scout", "tag_conversation", {"conversation_id":48244,"add":["billing"]}) const result = await cotlet.call('help-scout', 'tag_conversation', {"conversation_id":48244,"add":["billing"]}); cotlet call help-scout tag_conversation --data '{"conversation_id":48244,"add":["billing"]}' Example response
{
"conversation_id": 48244,
"tags": [
"billing"
],
"added": [
"billing"
],
"removed": []
}