Toggle Conversation Priority
POST/accounts/:account_id/conversations/:conversation_id/toggle_priority
Set or clear the priority of a conversation.
Send priority with the new value. Leave it out, or send null, to clear
the priority. The conversation's priority field shows the result.
| Setting | Value |
|---|---|
| Method | POST |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_priority |
| Authorization | User token or agent-bot token. New rules: Inbox priority of conversations for the inbox. |
Permissions:
- User token: the caller must also be able to see the conversation — see Who can see a conversation.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
conversation_id | integer | Yes | Conversation display ID. |
Body parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
priority | string | No | low, medium, high, urgent. Omit or send null to clear it. |
Example request
curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/toggle_priority' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "priority": "urgent" }'
Example response: 200 OK with an empty body. The conversation now has
"priority": "urgent".
Remarks
- Despite its name, the endpoint does not cycle through the priorities: it sets the value you send.
- A change fires the
conversation_updatedwebhook event.
Request
Responses
- 200
- 401
- 403
- 404
The priority was changed, with an empty body.
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.