Skip to main content

Update or close a ticket

Partially updates an email ticket. Send only the fields you want to change. Common uses:

  • Close / resolve — set statusId to the ID of the RESOLVED status (look it up with List ticket statuses; IDs differ per region). SLA timers are concluded automatically.
  • Tags — tags replaces the ticket's tag set with the list you send. Include the existing tags you want to keep. Tag IDs come from List tags.
  • Custom fields — customFields is merged into the existing values. Keys must be configured under Inbox settings → Custom fields (key prefix encodes the type: s string, n number, d date, k keyword, a array, h hierarchical). Values are validated against that configuration.
  • Priority / assignee — priority (LOW / MEDIUM / HIGH) and assignedTo (agent username/email; must be an agent on the bot).

The API key must hold an Inbox agent or admin role on the bot.

Restrictions: statusId cannot be set to OPEN (returns code: 400).

Path Parameters
id integer — REQUIRED

Ticket ID.

Example: 1024

Query Parameters
botId string — REQUIRED

ID of the AI agent (bot).

Example: x1715164928057

Request Body — REQUIRED
statusId integer

Target status ID (from List ticket statuses). Use the RESOLVED status ID to close the ticket.

tags object[]

Full set of tags the ticket should have after the update.

id integer

Tag ID.

customFields object

Custom-field key/value pairs to set. Merged into existing values.

priority string

Possible values: [LOW, MEDIUM, HIGH]

assignedTo string

Username of the agent to assign the ticket to.

Responses
200

Updated ticket (or an error envelope — check success).

Schema — OPTIONAL
success boolean — OPTIONAL

Present and true on success.

code integer — OPTIONAL

Logical status code (200 on success; 400/401/403/500 on failure).

data — OPTIONAL

Response payload on success.

message string — OPTIONAL

Error message on failure.