Sample - Slack Web API
POST/admin.conversations.rename

Rename a channel

Updates the name of a public or private channel. Supply channel_id and the new name in the form-encoded request body. The authenticated user must use a token with the administrative write scope.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 2 body fields
tokenstringrequired
Authentication token with the `admin.conversations:write` scope.

Form-encoded channel renaming details.

channel_idstringrequired
The channel to rename.
namestringrequired
New name for the channel.

2 status codes
200Returns a successful response containing the `ok` flag after renaming the channel.
okbooleanrequired
Allowed:true
defaultReturned when the channel cannot be renamed successfully; the response contains `ok: false` and an error value.
errorstringrequired
Allowed:feature_not_enabledchannel_not_foundchannel_type_not_supportedrestricted_actioncould_not_rename_channeldefault_org_wide_channelname_taken
okbooleanrequired
Allowed:false

Error handling

token must provide the admin.conversations:write scope. The request body must include both channel_id and name, and name must contain the new channel name.