# Change a Slack channel's handling

```http
PATCH https://trydimmi.com/api/v1/channels/{channel}/rooms/{room}
```

## Authorization

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

## Path parameters

- `channel` (string, required): Id of the Slack connection, starting with chn_, such as chn_01jx2m8k4t. Find it with GET /integrations/{integration} (its channel_ids).
- `room` (string, required): Id of the Slack channel a connection watches, starting with chr_, such as chr_01jx2m8k4t. Find it with GET /channels/{channel}/rooms.

## Body

- `mode` (string): shared (the other organization's people are customers), community (everyone but teammates), helpdesk (the team's own colleagues) or internal (nobody). One of: `shared`, `community`, `internal`, `helpdesk`.
- `settings` (object)
  - `agent_delay_seconds` (integer): Seconds the AI agent waits before answering in this room so a teammate can reply first, from 0 to 900, such as 120.
  - `agent_delay_when` (string): When the agent's wait applies: always, or inside_hours to wait only during office hours. One of: `always`, `inside_hours`.
  - `agent_mode` (string): How the AI agent works in this room: auto lets it answer, draft makes it write drafts instead. One of: `auto`, `draft`.
  - `auto_join` (boolean): true or false: the auto-join flag stored on this room.
  - `auto_reply_after_seconds` (integer): Seconds after a new conversation starts before the automatic reply is posted, from 0 to 900; 0 sends no automatic reply. Such as 60.
  - `request_sensitivity` (string): How readily a message counts as a request: conservative needs more confidence, aggressive accepts less. One of: `conservative`, `aggressive`.
  - `triage_channel_id` (string): Slack's own id of the channel where this room's new conversations are posted for triage, 1 to 40 characters, such as C0123ABCD.
- `trigger` (string): When a top-level message becomes a conversation: author_window, every_message, emoji, mention, ai, auto or off. One of: `author_window`, `every_message`, `emoji`, `mention`, `ai`, `auto`, `off`.

## Response 200 (OK)

- `data` (object, required)
  - `channel_id` (string, required): Id of the Slack connection that watches the channel, such as chn_....
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `external_id` (string, required): Slack's own id of the channel, such as C0123ABCD.
  - `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.
  - `is_shared_external` (boolean, required): True when the Slack channel is shared with another organization.
  - `last_error` (string | null, required): Why watching the channel last failed; null when it is healthy.
  - `last_seen_event_at` (string | null, required): When an event from the channel last arrived; null if none has.
  - `mode` (string, required): Who counts as the customer in the channel: shared (the other organization's people), community (everyone but linked teammates), helpdesk (the team's colleagues) or internal (nobody).
  - `name` (string, required): The Slack channel's name.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `removed_at` (string | null, required): When the app was removed from the channel; null while it is still in it. A removed room keeps its settings.
  - `settings` (object, required): The settings an admin chose for the channel, as an object; empty for none.
  - `status` (string, required): Whether the channel is watched: active, paused, removed or error.
  - `trigger` (string, required): When a message in the channel becomes a conversation: author_window, every_message, emoji, mention, ai, auto or off.
  - `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/channels/{channel}/rooms/{room}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "mode": "shared",
  "settings": {
    "agent_delay_seconds": 123,
    "agent_delay_when": "always",
    "agent_mode": "auto",
    "auto_join": true,
    "auto_reply_after_seconds": 123,
    "request_sensitivity": "conservative",
    "triage_channel_id": "<string>"
  },
  "trigger": "author_window"
}'
```

## Example response

```json
{
  "data": {
    "channel_id": "<string>",
    "created_at": "2026-11-01T09:30:00Z",
    "external_id": "<string>",
    "id": "<string>",
    "is_shared_external": true,
    "last_error": "<string>",
    "last_seen_event_at": "2026-11-01T09:30:00Z",
    "mode": "<string>",
    "name": "<string>",
    "object": "<string>",
    "removed_at": "2026-11-01T09:30:00Z",
    "settings": {
      "<key>": null
    },
    "status": "<string>",
    "trigger": "<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)
