Skip to content

Apply one action to many tickets at once

POST
/tickets/bulk
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/tickets/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "action": { "statusId": "example", "type": "status" }, "ticketIds": [ "example" ] }'

Applies a single action — status change, priority, assignee add/remove, tag add/remove, client-emails toggle, or read/unread — to up to 150 tickets in one call, reusing the same services the single-ticket controls use. Every ticket in the batch must fall inside the caller’s ticket scope or the whole request is rejected with 404 before anything runs. The action itself is never all-or-nothing: each id is attempted independently, so the response reports which ids changed and, for the rest, why not. The permission required depends on the action’s type — status, priority, tag and client-emails need tickets.manage, assignee needs tickets.assign, read needs only tickets.view. Marking unread reports under failed a ticket with no live message from someone else that the caller can open; internal notes count only for a caller holding tickets.manage.

Media typeapplication/json
object
action
required
One of:
object
statusId
required

Target status for every selected ticket.

string
>= 1 characters
type
required
string
Allowed value: status
ticketIds
required

Tickets to update, up to 150 per request.

Array<string>
>= 1 items <= 150 items

Which tickets changed and why the others did not.

Media typeapplication/json
object
data
required

Outcome of a bulk ticket action.

object
failed
required

Ticket ids the action could not apply to, with why.

Array<object>
object
id
required
string
reason
required

Why this ticket did not change.

string
succeeded
required

Ticket ids the action applied to.

Array<string>

Example generated

{
"data": {
"failed": [
{
"id": "example",
"reason": "example"
}
],
"succeeded": [
"example"
]
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.