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

Parameters: remove_label
NameTypeDescription
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
curl -X DELETE "https://cotlet.dev/api/v1/trengo/conversations/1/labels?label=label" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("trengo", "remove_label", {"conversation_id":1,"label":"label"})
Node.js
const result = await cotlet.call('trengo', 'remove_label', {"conversation_id":1,"label":"label"});
CLI
cotlet call trengo remove_label --data '{"conversation_id":1,"label":"label"}'

Example response

JSON

{
  "conversation_id": 5120344,
  "labels": []
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.