Skip to main content

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.

SettingValue
MethodPOST
Path/api/v1/accounts/{account_id}/bulk_actions
AuthorizationUser 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

NameTypeRequiredDescription
account_idintegerYesAccount ID.

Body parameters (JSON)

NameTypeRequiredDescription
typestringYesMust be Conversation. Anything else returns 422 {"success": false}.
idsinteger[]YesConversation display IDs.
fields.statusstringNoNew status: open (Bot), pending (Manual), snoozed, resolved.
fields.prioritystringNoNew priority: low, medium, high, urgent.
fields.assignee_idintegerNoAgent to assign (must be assignable in every affected inbox).
fields.team_idintegerNoTeam to assign.
fields.snoozed_untilstringNoSnooze end time.
labels.addstring[]NoLabels to add.
labels.removestring[]NoLabels 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

StatusWhenBody
403A conversation is not visible to the caller, or the caller lacks the inbox permission for a field. The whole request is rejected.
422type is not Conversation.{"success": false}

Remarks​

Request​

Responses​

The update was accepted and runs in the background, with an empty body.