# Update channel

## Update password or traffic limit of specified sub channel

<mark style="color:green;">`POST`</mark> `https://api.renlaer.com/V1/OpenApi/OpenApiEditChannel`

#### Headers

| Name                                           | Type   | Description                       |
| ---------------------------------------------- | ------ | --------------------------------- |
| UserId<mark style="color:red;">\*</mark>       | String | "Authentication" generated userId |
| Token<mark style="color:red;">\*</mark>        | String | "Authentication" generated token  |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json                  |

#### Request Body

| Name                                        | Type    | Description                                                          |
| ------------------------------------------- | ------- | -------------------------------------------------------------------- |
| ChannelId<mark style="color:red;">\*</mark> | Integer |                                                                      |
| ChannelName                                 | String  |                                                                      |
| ChannelLimitTrafficGb                       | Integer |                                                                      |
| Enable                                      | Boolean | true=open channel，false=close channel                                |
| ChannelPassword                             | String  | Password must be 6 characters, a combination of numbers and letters. |

{% tabs %}
{% tab title="200: OK "Code":1000,"Message":"Successful"" %}

```json
{
    "Code": 1000,
    "Message": "Successful",
    "Data": true
}
```

{% endtab %}
{% endtabs %}
