# 频道设置修改

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /chatroom/v2/settings/channel/edit:
    post:
      summary: 频道设置修改
      deprecated: false
      description: |-
        需要 编辑频道 权限

        | setting | value | desc |
        | --- | --- | --- |
        | slow_mode | 10 | 发送消息速度|
        | max_count | 100 | 频道最大人数 |
        | is_private | 1 | 是否为私密频道 |
      tags:
        - HTTP接口/房间接口
      parameters:
        - name: client_type
          in: query
          description: 声明请求黑盒语音
          required: true
          example: heybox_chat
          schema:
            type: string
            default: heybox_chat
        - name: x_client_type
          in: query
          description: 声明客户端类型
          required: true
          example: web
          schema:
            type: string
            default: web
        - name: os_type
          in: query
          description: 声明客户端类型
          required: true
          example: web
          schema:
            type: string
            default: web
        - name: x_os_type
          in: query
          description: 声明客户端是bot
          required: true
          example: bot
          schema:
            type: string
            default: bot
        - name: x_app
          in: query
          description: 声明请求黑盒语音
          required: true
          example: heybox_chat
          schema:
            type: string
            default: heybox_chat
        - name: chat_os_type
          in: query
          description: 声明客户端是bot
          required: true
          example: bot
          schema:
            type: string
            default: bot
        - name: chat_version
          in: query
          description: 客户端版本号,不同版本返回的结果可能有区别
          required: true
          example: 1.30.0
          schema:
            type: string
            default: 1.30.0
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json;charset=utf-8
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                channel_id:
                  type: string
                  title: 频道id
                room_id:
                  type: string
                  title: 房间id
                  nullable: true
                setting:
                  type: string
                  title: 配置项
                value:
                  type: integer
                  title: 配置项的值
                channel_type:
                  type: integer
                  title: 频道类型
              required:
                - channel_id
                - room_id
                - setting
                - value
                - channel_type
              x-apifox-orders:
                - channel_id
                - room_id
                - setting
                - value
                - channel_type
            example:
              channel_id: '3639233526504988672'
              room_id: '3379814836102766592'
              setting: follow_group_v1
              value: 4
              channel_type: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security:
        - apikey-header-token: []
      x-apifox-folder: HTTP接口/房间接口
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/4856361/apis/api-325259753-run
components:
  schemas: {}
  securitySchemes:
    token:
      type: apikey
      in: header
      name: token
      token: ODYzNzY0NDM7MTc1NTc1OTk1NzYyODYzNjQ0NzsxNTU0MDM2NTkxNzk2OTM1OTY5
    apikey-header-token:
      type: apiKey
      in: header
      name: token
servers:
  - url: http://prod-cn.your-api-server.com
    description: 正式环境
security:
  - apikey-header-token: []

```
