Update a ticket
Updates a ticket. Send exactly one intent per request: change status (solved/closed resolves, open reopens), add a comment, assign a category/group_id, reassign via assignedTo/assignee_id, set customFields, or replace tags. Reopening creates a new ticket linked to the old one and returns it along with previousTicketId.
| Path Parameters |
|---|
id string — REQUIREDThe ticket ID. |
| Query Parameters |
|---|
bot string — REQUIREDThe unique ID of the bot. |
| Request Body — REQUIRED | ||
|---|---|---|
status string
| ||
comment object
| ||
category stringGroup/category code. Alias | ||
assignedTo stringAgent to reassign to. Alias | ||
customFields objectKey-value custom fields; unknown keys are rejected. | ||
tags string[] |
| Responses | |||
|---|---|---|---|
200Ticket updated. For a reopen, the body also includes
| |||
400No updatable field found, tags not an array, or an invalid/unknown custom field.
| |||
401Missing/invalid API key.
| |||
404Ticket or agent not found (e.g. reassigning to an unknown agent).
| |||
422Unsupported status transition — accepted values are
| |||
429Rate limit exceeded.
| |||
500Internal server error.
|