# Update an inbox

```http
PATCH https://trydimmi.com/api/v1/inboxes/{inbox}
```

## Authorization

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

## Path parameters

- `inbox` (string, required): Id of the inbox, starting with inbox_, such as inbox_01jx2m8k4t. Find it with GET /inboxes.

## Body

- `default_team_id` (string): The team (team_...) new conversations go to, or null for none.
- `name` (string): The name of the inbox, at most 80 characters.
- `settings` (any): A merge patch: keys sent replace theirs, null resets a key to its default. reopen_window_days: how long after closing a customer's message reopens it, 0 for never. assign_on_reply: a reply takes a conversation nobody holds. color. assignment: {mode: manual, round_robin or balanced; include_away; overflow_team_id; queue_order: oldest_waiting or priority_then_oldest; default_capacity; capacity_by_channel}.
- `ticket_type_id` (string): Id of the ticket type, starting with tktt_, such as tktt_01jx2m8k4t. Find it with GET /ticket-types.

## Response 200 (OK)

- `data` (object, required)
  - `access` (object, required)
    - `member_ids` (string[] | null, required): Ids of the teammates who may open the inbox, each starting with mem_. Used when mode is restricted.
    - `mode` (string, required): Who may open the inbox: everyone, or restricted to the teams and teammates listed.
    - `team_ids` (string[] | null, required): Ids of the teams who may open the inbox, each starting with team_. Used when mode is restricted.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `default` (boolean, required): True for the inbox where conversations land when nothing routes them elsewhere.
  - `default_team_id` (string | null, required): Id of the team new conversations in this inbox go to, starting with team_. Null for no team.
  - `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 inbox's name.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `schedule_id` (string | null, required): Id of the schedule holding this inbox's own office hours, starting with sch_. Null when it follows the workspace's default.
  - `settings` (object, required)
    - `assign_on_reply` (boolean, required): True when a conversation nobody holds goes to whoever replies to it.
    - `assignment` (object, required)
      - `capacity_by_channel` (object, required): The most open conversations a member holds per channel, keyed by widget, email or api, each 1 to 500, such as {"email": 20}.
      - `default_capacity` (integer | null, required): The most open conversations a member without their own limit holds at once. Null for no limit.
      - `include_away` (boolean, required): True when members who are away still get conversations assigned.
      - `mode` (string, required): How new conversations get an assignee: manual, round_robin or balanced.
      - `overflow_team_id` (string | null, required): Id of the team tried when the first pool has nobody free, starting with team_. Null for none.
      - `queue_order` (string, required): The order waiting conversations are taken in: oldest_waiting or priority_then_oldest.
    - `color` (string, required): The color that marks the inbox in lists. Empty when none is set.
    - `reopen_window_days` (integer, required): How many days after closing a customer's reply reopens the conversation, 0 to 365; 0 means never.
  - `ticket_type_id` (string | null, required): Id of the ticket type new conversations in this inbox become, starting with tktt_. Null for none.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

## 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/inboxes/{inbox}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "default_team_id": "<string>",
  "name": "<string>",
  "settings": null,
  "ticket_type_id": "<string>"
}'
```

## Example response

```json
{
  "data": {
    "access": {
      "member_ids": [
        "<string>"
      ],
      "mode": "<string>",
      "team_ids": [
        "<string>"
      ]
    },
    "created_at": "2026-11-01T09:30:00Z",
    "default": true,
    "default_team_id": "<string>",
    "id": "<string>",
    "name": "<string>",
    "object": "<string>",
    "schedule_id": "<string>",
    "settings": {
      "assign_on_reply": true,
      "assignment": {
        "capacity_by_channel": {
          "<key>": 123
        },
        "default_capacity": 123,
        "include_away": true,
        "mode": "<string>",
        "overflow_team_id": "<string>",
        "queue_order": "<string>"
      },
      "color": "<string>",
      "reopen_window_days": 123
    },
    "ticket_type_id": "<string>",
    "updated_at": "2026-11-01T09:30:00Z"
  }
}
```

---

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