---
title: "Update channel type"
method: PUT
path: "/channeltypes/{name}"
tags: ["product:chat"]
---

# Update channel type

`PUT /channeltypes/{name}`

Updates channel type

## Path parameters

- `name` string, required

## Request body

- UpdateChannelTypeRequest, nullable
  - `allowed_flag_reasons` string[]
  - `automod` 'disabled' | 'simple' | 'AI', required
  - `automod_behavior` 'flag' | 'block' | 'shadow_block', required
  - `automod_thresholds` Thresholds — Sets thresholds for AI moderation
    - `explicit` LabelThresholds
      - `block` number, float — Threshold for automatic message block
      - `flag` number, float — Threshold for automatic message flag
    - `spam` LabelThresholds
      - `block` number, float — Threshold for automatic message block
      - `flag` number, float — Threshold for automatic message flag
    - `toxic` LabelThresholds
      - `block` number, float — Threshold for automatic message block
      - `flag` number, float — Threshold for automatic message flag
  - `blocklist` string
  - `blocklist_behavior` 'flag' | 'block' | 'shadow_block'
  - `blocklists` BlockListOptions[]
    - `behavior` 'flag' | 'block' | 'shadow_block', required — Blocklist behavior. One of: flag, block, shadow_block
    - `blocklist` string, required — Blocklist name
  - `chat_preferences` ChatPreferences
    - `channel_mentions` string
    - `default_preference` string
    - `direct_mentions` string
    - `distinct_channel_messages` string
    - `group_mentions` string
    - `here_mentions` string
    - `role_mentions` string
    - `thread_replies` string
  - `commands` string[] — List of commands that channel supports
  - `connect_events` boolean
  - `count_messages` boolean
  - `custom_events` boolean
  - `delivery_events` boolean
  - `grants` object
  - `mark_messages_pending` boolean
  - `max_message_length` integer, required
  - `message_retention` string
  - `mutes` boolean
  - `partition_size` integer
  - `partition_ttl` string, duration, nullable
  - `permissions` PolicyRequest[]
    - `action` 'Deny' | 'Allow', required
    - `name` string, required — User-friendly policy name
    - `owner` boolean, required — Whether policy applies to resource owner or not
    - `priority` integer, required — Policy priority
    - `resources` string[], required — List of resources to apply policy to
    - `roles` string[], required — List of roles to apply policy to
  - `polls` boolean
  - `push_level` 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none'
  - `push_notifications` boolean
  - `quotes` boolean
  - `reactions` boolean
  - `read_events` boolean
  - `reminders` boolean
  - `replies` boolean
  - `search` boolean
  - `shared_locations` boolean
  - `skip_last_msg_update_for_system_msgs` boolean
  - `typing_events` boolean
  - `uploads` boolean
  - `url_enrichment` boolean
  - `user_message_reminders` boolean

## Response `201`

Successful response

- UpdateChannelTypeResponse, nullable
  - `allowed_flag_reasons` string[]
  - `automod` 'disabled' | 'simple' | 'AI', required
  - `automod_behavior` 'flag' | 'block' | 'shadow_block', required
  - `automod_thresholds` Thresholds — Sets thresholds for AI moderation
    - `explicit` LabelThresholds
      - `block` number, float — Threshold for automatic message block
      - `flag` number, float — Threshold for automatic message flag
    - `spam` LabelThresholds
      - `block` number, float — Threshold for automatic message block
      - `flag` number, float — Threshold for automatic message flag
    - `toxic` LabelThresholds
      - `block` number, float — Threshold for automatic message block
      - `flag` number, float — Threshold for automatic message flag
  - `blocklist` string
  - `blocklist_behavior` 'flag' | 'block' | 'shadow_block'
  - `blocklists` BlockListOptions[]
    - `behavior` 'flag' | 'block' | 'shadow_block', required — Blocklist behavior. One of: flag, block, shadow_block
    - `blocklist` string, required — Blocklist name
  - `chat_preferences` ChatPreferences
    - `channel_mentions` string
    - `default_preference` string
    - `direct_mentions` string
    - `distinct_channel_messages` string
    - `group_mentions` string
    - `here_mentions` string
    - `role_mentions` string
    - `thread_replies` string
  - `commands` string[], required
  - `connect_events` boolean, required
  - `count_messages` boolean, required
  - `created_at` string, date-time, required
  - `custom_events` boolean, required
  - `delivery_events` boolean, required
  - `duration` string, required
  - `grants` object, required
  - `mark_messages_pending` boolean, required
  - `max_message_length` integer, required
  - `message_retention` string, required
  - `mutes` boolean, required
  - `name` string, required
  - `partition_size` integer
  - `partition_ttl` string, duration, nullable
  - `permissions` PolicyRequest[], required
    - `action` 'Deny' | 'Allow', required
    - `name` string, required — User-friendly policy name
    - `owner` boolean, required — Whether policy applies to resource owner or not
    - `priority` integer, required — Policy priority
    - `resources` string[], required — List of resources to apply policy to
    - `roles` string[], required — List of roles to apply policy to
  - `polls` boolean, required
  - `push_level` 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none'
  - `push_notifications` boolean, required
  - `quotes` boolean, required
  - `reactions` boolean, required
  - `read_events` boolean, required
  - `reminders` boolean, required
  - `replies` boolean, required
  - `search` boolean, required
  - `shared_locations` boolean, required
  - `skip_last_msg_update_for_system_msgs` boolean, required
  - `typing_events` boolean, required
  - `updated_at` string, date-time, required
  - `uploads` boolean, required
  - `url_enrichment` boolean, required
  - `user_message_reminders` boolean, required

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.dev/getstream/apis/stream-api.md) · [All operations](https://skmtc.dev/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getstream/stream-api/revisions/653d3d10a523/schema)
