Bulk Update Conversations
POST/accounts/:account_id/bulk_actions
Updates many conversations at once: status, priority, assignee, team, snooze time, and adding or removing labels.
The update runs in the background, so the response is immediate. The request
is rejected as a whole (403) if any conversation is not visible to the
caller, or if the caller lacks the inbox permission for a field being
changed (the same permissions as the single-conversation endpoints); then
no conversation is changed.
| Setting | Value |
|---|---|
| Method | POST |
| Path | /api/v1/accounts/{account_id}/bulk_actions |
| Authorization | User token. Per-field inbox permissions as in Toggle Conversation Status, Toggle Conversation Priority, Assign Conversation and Set Conversation Labels. |
Permissions:
- User token: the caller must be able to see every conversation in
ids— see Who can see a conversation. New rules system, for each field you change, in every conversation's inbox:fields.status: Inbox resolve, Inbox move to pending, Inbox reopen or Inbox manual/bot switch, by the status.fields.priority: Inbox priority of conversations.fields.assignee_id: Inbox can assign.fields.team_id: Inbox assign to group.labels: Inbox assign labels.
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
Body parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be Conversation. Anything else returns 422 {"success": false}. |
ids | integer[] | Yes | Conversation display IDs. |
fields.status | string | No | New status: open (Bot), pending (Manual), snoozed, resolved. |
fields.priority | string | No | New priority: low, medium, high, urgent. |
fields.assignee_id | integer | No | Agent to assign (must be assignable in every affected inbox). |
fields.team_id | integer | No | Team to assign. |
fields.snoozed_until | string | No | Snooze end time. |
labels.add | string[] | No | Labels to add. |
labels.remove | string[] | No | Labels to remove. |
Example request
curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk_actions' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"type": "Conversation",
"ids": [1501],
"fields": { "status": "pending", "priority": "high" },
"labels": { "add": ["billing"], "remove": ["follow_up"] }
}'
Example response: 200 OK with an empty body. A few seconds later
conversation 1501 had status pending, priority high and labels
["vip", "billing"].
Error responses
| Status | When | Body |
|---|---|---|
403 | A conversation is not visible to the caller, or the caller lacks the inbox permission for a field. The whole request is rejected. | |
422 | type is not Conversation. | {"success": false} |
Remarks
labels.addandlabels.removechange single labels without sending the full list, unlike Set Conversation Labels, which replaces it. This works for a single conversation too.- To mark conversations as read or unread, use Bulk Mark as Read and Bulk Mark as Unread.
Request
Responses
- 200
- 401
- 403
- 422
The update was accepted and runs in the background, 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.
type is not Conversation.