# Change many conversations at once

```http
POST https://trydimmi.com/api/v1/conversation-bulk-changes
```

## Authorization

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

## Body

- `changes` (object)
  - `add_tags` (string[] | null): Tags to put on the conversation, or on each one in a bulk change, as a list of up to 50 tag ids (tag_...) or tag names; a name no tag has yet becomes a new tag. Such as ["tag_01jx2m8k4t", "billing"].
  - `ai_enabled` (boolean): false keeps every AI agent off the conversation, or each one in a bulk change, until turned on again; true lets the agent answer again, even after a handover.
  - `assignee_id` (string): Who the conversation, or each one in a bulk change, goes to: a teammate's id starting with mem_, such as mem_01jx2m8k4t (find it with GET /members), me for yourself, or null to hand it to nobody.
  - `inbox_id` (string): Id of the inbox to move the conversation, or each one in a bulk change, to, starting with inbox_, such as inbox_01jx2m8k4t. Find it with GET /inboxes.
  - `note` (string): Only with status closed: a note for the team kept with the closing, 1 to 65536 characters, such as Refund sent, nothing more to do.
  - `priority` (string): How urgent the conversation is, or each one in a bulk change: none, low, medium, high or urgent, such as "high". One of: `none`, `low`, `medium`, `high`, `urgent`.
  - `remove_tags` (string[] | null): Tags to take off the conversation, or off each one in a bulk change, as a list of up to 50 tag ids (tag_...), such as ["tag_01jx2m8k4t"]. Find them with GET /tags.
  - `snooze_option` (string): Only with status snoozed: the key of one of the workspace's own snooze choices, from GET /snooze-options, at most 40 characters. Send exactly one of snoozed_until, snooze_preset or snooze_option.
  - `snooze_preset` (string): Only with status snoozed: later_today (three hours on), tomorrow or next_week (at nine) or one_week (seven days on, at nine), in your time zone, such as "tomorrow". Send exactly one of snoozed_until, snooze_preset or snooze_option.
  - `snoozed_until` (string): Only with status snoozed: when the snooze ends, as an RFC 3339 (ISO 8601) time from a minute to a year ahead, such as 2026-12-01T09:00:00Z. Send exactly one of snoozed_until, snooze_preset or snooze_option.
  - `spam` (boolean): true moves the conversation, or each one in a bulk change, to the spam view and out of every other; false brings it back.
  - `status` (string): The status to set: open, closed or snoozed, such as "closed". snoozed also needs exactly one of snoozed_until, snooze_preset or snooze_option. A closed conversation cannot be snoozed: reopen it first. One of: `open`, `closed`, `snoozed`.
  - `subject` (string): The new subject of the conversation, or of every conversation in a bulk change, 1 to 255 characters, such as Refund for order 1042.
  - `team_id` (string): Id of the team the conversation, or each one in a bulk change, goes to, starting with team_, such as team_01jx2m8k4t (find it with GET /teams), or null for no team.
  - `unread` (boolean): true marks the conversation, or each one in a bulk change, unread for you alone; false marks it read.
- `conversation_ids` (string[] | null, required): Ids of conversations, as a list, such as ["conv_01jx2m8k4t"].
- `trash` (boolean): Set true to move every listed conversation to the trash instead of changing it. Send this or changes, never both. Example: true.

## Response 200 (OK)

- `data` (object[] | null, required): One result per conversation, in the order the ids were sent: whether it went through, the fields that changed, or the error code that stopped it.
  - `changed` (string[] | null, required): The fields that changed, such as status, assignee_id, team_id, spam, add_tags, remove_tags or unread, or deleted when it was trashed. Empty when nothing changed.
  - `error` (string): The code of the error that stopped this conversation's change, such as not_found. Absent when it went through.
  - `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.
  - `ok` (boolean, required): True when the change went through for this conversation, false when error says why it did not.

## 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 POST \
  --url 'https://trydimmi.com/api/v1/conversation-bulk-changes' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "changes": {
    "add_tags": [
      "<string>"
    ],
    "ai_enabled": true,
    "assignee_id": "<string>",
    "inbox_id": "<string>",
    "note": "<string>",
    "priority": "none",
    "remove_tags": [
      "<string>"
    ],
    "snooze_option": "<string>",
    "snooze_preset": "<string>",
    "snoozed_until": "2026-11-01T09:30:00Z",
    "spam": true,
    "status": "open",
    "subject": "<string>",
    "team_id": "<string>",
    "unread": true
  },
  "conversation_ids": [
    "<string>"
  ],
  "trash": true
}'
```

## Example response

```json
{
  "data": [
    {
      "changed": [
        "<string>"
      ],
      "error": "<string>",
      "id": "<string>",
      "ok": true
    }
  ]
}
```

---

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