Skip to content
dimmiDocs

Tickets

Add a ticket state

POST/api/v1/ticket-states

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Body

application/json
customer_labelstring

What 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

groupstring

The 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

namestring

The name of the ticket state, at most 60 characters.

Maximum length: 60

notify_customerboolean

true 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 201

Created
dataobjectrequired
Show child attributes
archived_atstring | nullrequired

When the state was archived: hidden from new work but kept on old tickets. Null while it is in use.

Format: date-time

customer_labelstringrequired

What the customer sees when their ticket is in this state, such as We're on it.

groupstringrequired

The fixed group that says what the state means: submitted, in_progress, waiting_customer, waiting_team or resolved.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

namestringrequired

The state's name as the team sees it, 1 to 60 characters.

notify_customerbooleanrequired

True when moving a ticket into this state tells the customer.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

positionintegerrequired

The state's place in the workspace's order of states, lower first.

Format: int32

purposestring | nullrequired

Marks a state dimmi itself moves tickets to: close_loop, being_worked_on, wont_fix or investigating. Null for ordinary states.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.