# Update a ticket state

```http
PATCH https://trydimmi.com/api/v1/ticket-states/{state}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `settings:write`.

## Path parameters

- `state` (string, required): Id of the ticket state, starting with tkts_, such as tkts_01jx2m8k4t. Find it with GET /ticket-states.

## Body

- `customer_label` (string): 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.
- `group` (string): 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. One of: `submitted`, `in_progress`, `waiting_customer`, `waiting_team`, `resolved`.
- `name` (string): The name of the ticket state, at most 60 characters.
- `notify_customer` (boolean): 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 200 (OK)

- `data` (object, required)
  - `archived_at` (string | null, required): When the state was archived: hidden from new work but kept on old tickets. Null while it is in use.
  - `customer_label` (string, required): What the customer sees when their ticket is in this state, such as We're on it.
  - `group` (string, required): The fixed group that says what the state means: submitted, in_progress, waiting_customer, waiting_team or resolved.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `name` (string, required): The state's name as the team sees it, 1 to 60 characters.
  - `notify_customer` (boolean, required): True when moving a ticket into this state tells the customer.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `position` (integer, required): The state's place in the workspace's order of states, lower first.
  - `purpose` (string | null, required): Marks a state dimmi itself moves tickets to: close_loop, being_worked_on, wont_fix or investigating. Null for ordinary states.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/ticket-states/{state}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_label": "<string>",
  "group": "submitted",
  "name": "<string>",
  "notify_customer": true
}'
```

## Example response

```json
{
  "data": {
    "archived_at": "2026-11-01T09:30:00Z",
    "customer_label": "<string>",
    "group": "<string>",
    "id": "<string>",
    "name": "<string>",
    "notify_customer": true,
    "object": "<string>",
    "position": 123,
    "purpose": "<string>"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
