Tickets
Update a ticket state
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the settings:write ability
Path parameters
statestringrequiredId of the ticket state, starting with tkts_, such as tkts_01jx2m8k4t. Find it with GET /ticket-states.
Body
application/jsoncustomer_labelstringWhat the customer sees as the status while a ticket is in this state, such as "With our billing team". At most 80 characters. Left empty, the state name is used.
Maximum length: 80
groupstringThe stage the state belongs to: submitted, in_progress, waiting_customer, waiting_team or resolved, such as "in_progress". It is set when the state is added and never changes; when updating, a value sent here is ignored.
Available options:submittedin_progresswaiting_customerwaiting_teamresolved
namestringThe name of the ticket state, at most 60 characters.
Maximum length: 60
notify_customerbooleantrue to send the customer a message with the customer label when a ticket they can see moves into this state; false to stay quiet. A new state starts with true.
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
archived_atstring | nullrequiredWhen the state was archived: hidden from new work but kept on old tickets. Null while it is in use.
Format: date-time
customer_labelstringrequiredWhat the customer sees when their ticket is in this state, such as We're on it.
groupstringrequiredThe fixed group that says what the state means: submitted, in_progress, waiting_customer, waiting_team or resolved.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
namestringrequiredThe state's name as the team sees it, 1 to 60 characters.
notify_customerbooleanrequiredTrue when moving a ticket into this state tells the customer.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
positionintegerrequiredThe state's place in the workspace's order of states, lower first.
Format: int32
purposestring | nullrequiredMarks a state dimmi itself moves tickets to: close_loop, being_worked_on, wont_fix or investigating. Null for ordinary states.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.