# 修改频道

## 请求 <a href="#undefined" id="undefined"></a>

* Method : PUT
* URI : /channel

```
PUT
url : https://dashboard-api.gamechat.naverncp.com/v1/api/project/{projectId}/channel
Header : 'x-api-key: {API Key}'
Header : 'content-type: application/json'
data: '{
    "name":"#All",
}'
```

<table><thead><tr><th width="143">Header</th><th width="104">Type</th><th width="109">Required</th><th>Description</th></tr></thead><tbody><tr><td>x-api-key</td><td>String</td><td>O</td><td>仪表盘 > 设置 > 项目设置 > API Key</td></tr></tbody></table>

<table><thead><tr><th width="144">Attribute</th><th width="105">Type</th><th width="111">Required</th><th>Description</th></tr></thead><tbody><tr><td>projectId</td><td>String</td><td>O</td><td>项目ID（仪表盘 > 设置 > 项目设置 > 项目ID）</td></tr><tr><td>name</td><td>String</td><td>O</td><td>频道名称</td></tr><tr><td>translation</td><td>Boolean</td><td>X</td><td>是否可翻译</td></tr><tr><td>uniqueId</td><td>String</td><td>X</td><td>可任意指定的固有ID</td></tr><tr><td>limit</td><td>Int</td><td>X</td><td>频道内最大参与人数（为0时没有限制）</td></tr></tbody></table>

## 响应 <a href="#undefined" id="undefined"></a>

```javascript
{
    "status": 1,
    "result": "1a51af0d-f464-4440-8ad6-ce69e0bdaba8"
}
```

<table><thead><tr><th width="158">Attribute</th><th width="136">Type</th><th>Description</th></tr></thead><tbody><tr><td>status</td><td>Int</td><td>结果值（1：成功，失败参考Error code）</td></tr><tr><td>result</td><td>String</td><td>修改的频道ID</td></tr></tbody></table>

## 错误代码 <a href="#undefined" id="undefined"></a>

<table><thead><tr><th width="192">Code</th><th>Description</th></tr></thead><tbody><tr><td>-100</td><td>无必要参数时</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gamechat.me/basics/game-chat-v2/game-chat-zhong-wen/open-api/xiu-gai-pin-dao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
