Update or close a ticket
Partially updates an email ticket. Send only the fields you want to change. Common uses:
- Close / resolve — set
statusIdto the ID of theRESOLVEDstatus (look it up with List ticket statuses; IDs differ per region). SLA timers are concluded automatically. - Tags —
tagsreplaces 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 —
customFieldsis merged into the existing values. Keys must be configured under Inbox settings → Custom fields (key prefix encodes the type:sstring,nnumber,ddate,kkeyword,aarray,hhierarchical). Values are validated against that configuration. - Priority / assignee —
priority(LOW/MEDIUM/HIGH) andassignedTo(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 — REQUIREDTicket ID. Example:
|
| Query Parameters |
|---|
botId string — REQUIREDID of the AI agent (bot). Example:
|
| Request Body — REQUIRED | |
|---|---|
statusId integerTarget status ID (from List ticket statuses). Use the | |
tags object[]Full set of tags the ticket should have after the update.
| |
customFields objectCustom-field key/value pairs to set. Merged into existing values. | |
priority stringPossible values: [ | |
assignedTo stringUsername of the agent to assign the ticket to. |
| Responses | |||||
|---|---|---|---|---|---|
200Updated ticket (or an error envelope — check
|