Skip to main content
Required scopes: support_tickets_write

Arguments

[ID!]
Tickets the filters match that the run leaves alone, at most 500, as the help desk does for “all matching except these”.
Int!
required
How many tickets the filters match, as supportTicketCount counts them for the same filters, before excludedTicketIds is taken out: 1 to 10000. Requires support_tickets_read.Requires: support_tickets_read
Which tickets to include. Omitted: every ticket but the archived ones.
Boolean
True also leaves out tickets tagged as spam and tickets assigned to the AI agent, as the help desk’s own lists, its Drafts and Sent views and SupportView.tickets do; a filter that asks for the AI agent’s tickets by assigneeType keeps them. Default false: every ticket filter matches.
String
A key you choose, up to 100 characters, that makes a retry safe. For 24 hours, repeating the request with the same key returns the first result and writes nothing; the record that result names is null if it has since been deleted or hidden. The same key with a different request throws IDEMPOTENCY_KEY_REUSED (422): repeat the first request exactly, or use a new key. While the first request is still running, a repeat throws IDEMPOTENCY_IN_PROGRESS (409): retry with the same key in a moment. A request that fails without writing frees its key, so a retry runs it again. Each mutation has its own keys.
The change.
Where every query in filter looks: one choice for the whole search, as the help desk’s search has. Omitted or empty: everywhere, including the AI summary.

Returns

A bulk ticket update running in the background, as the help desk’s bulk actions run. A job: status is QUEUED until the first ticket starts, then RUNNING, then SUCCEEDED when at least one ticket was updated or FAILED when none was or the run stopped. A ticket that failed doesn’t fail the run; see results.

Errors

Besides the errors any request can return, this operation fails with these codes in extensions.code.

Example