Set Conversation Labels
POST/accounts/:account_id/conversations/:conversation_id/labels
Add labels to a conversation.
Using this request will overwrite the existing list of labels associated to
the conversation: labels you leave out are removed. Send the full list — or
[] to remove every label.
To add or remove single labels without sending the full list, use
Bulk Update Conversations
with labels.add / labels.remove. The labels themselves are managed with
the Labels endpoints.
Settings:
| Setting | Value |
|---|---|
| URL | https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/labels |
| Method | JSON via POST |
Authorization:
| Header Parameter | Description |
|---|---|
api_access_token | User API key |
The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.
Permissions:
- User token: the caller must be able to see the conversation — see Who can see a conversation. New rules system: Inbox assign labels for the conversation's inbox.
- Agent-bot token: allowed.
Path Parameters:
| Parameter | Description | Required |
|---|---|---|
account_id | The numeric ID of the account | Yes |
conversation_id | The numeric ID of the conversation (its display ID) | Yes |
Request body:
| Parameter | type | Description | Required |
|---|---|---|---|
labels | array of strings | An array of labels: the full list of label titles the conversation should have (see List Labels) | Yes |
Request body example:
{
"labels": ["vip", "billing"]
}
Response:
{
"payload": [
"vip",
"billing"
]
}
Response-Explain:
| Parameter | Description |
|---|---|
payload | Array of strings (label): the titles of the conversation's labels after the change |
Remarks
- A change fires the
conversation_updatedwebhook event.
Request
Responses
- 200
- 401
- 403
- 404
The conversation's labels after the change.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.