Requires MANAGE_CHANNELS. The preferred request field is newChannelID; name is accepted as a compatibility alias.
POST http://localhost:8989/api/channels/{channelID}/rename
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| channelID | string | Channel identifier. |
Required |
The request body takes a complete Rename Channel Request resource, containing the following writable properties:
{
"name": "string",
"newChannelID": "string"
}
| Name | Type | Description | Additional |
|---|---|---|---|
| name | string | Managed Identifier | Optional |
| newChannelID | string | Managed Identifier | Optional |
This request requires the use of one of following authorisation methods:
API key
.
The following HTTP status codes may be returned, optionally with a response resource.
| Status code | Description | Resource |
|---|---|---|
| 200 | OK Channel renamed. |
Channel Mutation Response |
| 400 | Bad Request The request is invalid, references a missing resource, or conflicts with existing state. |
Error Response |
| 401 | Unauthorized The Authorization header is missing or malformed. |
Error Response |
| 403 | Forbidden The token is invalid or expired, or the requester lacks a required permission. |
Error Response |
| 500 | Internal Server Error The server could not complete the operation. |
Error Response |