Remove label
Removes a label from a conversation.
DELETE https://cotlet.dev/api/v1/trengo/conversations/{conversation_id}/labels
write
Uses the cross icon on the label. Returns the labels that remain. It reaches nobody and add_label puts the label back, so it runs without confirmation.
Parameters
| Name | Type | Description |
|---|---|---|
| conversation_id integer required | integer | Conversation ID from list_conversations or search_conversations. |
| label string required | string | Label name currently on the conversation. |
Request
curl -X DELETE "https://cotlet.dev/api/v1/trengo/conversations/1/labels?label=label" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("trengo", "remove_label", {"conversation_id":1,"label":"label"}) const result = await cotlet.call('trengo', 'remove_label', {"conversation_id":1,"label":"label"}); cotlet call trengo remove_label --data '{"conversation_id":1,"label":"label"}' Example response
{
"conversation_id": 5120344,
"labels": []
}