Sample - Slack Web API
POST/conversations.rename

Rename a conversation

Renames an existing conversation. Provide the conversation identifier in channel and the new name in name, using an authentication token with the conversations:write scope when authorization is required.

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

1 parameter · 2 body fields
tokenstringoptional
Authentication token for the request; it must provide the `conversations:write` scope.

Optional form-encoded conversation rename details.

channelstringoptional
ID of conversation to rename
namestringoptional
New name for conversation.

2 status codes
200Returns a success object with `ok` set to true and the renamed conversation in `channel`.
channelarrayrequired
okbooleanrequired
Allowed:true
defaultTypical error response when the calling user is not a member of the conversation
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:user_is_restrictedmethod_not_supported_for_channel_typemissing_scopechannel_not_foundnot_in_channelnot_authorizedinvalid_namename_takeninvalid_name_requiredinvalid_name_punctuationinvalid_name_maxlengthinvalid_name_specials
neededstringoptional
okbooleanrequired
Allowed:false
providedstringoptional

Error handling

channel must identify a conversation the authenticated user can rename, and name must be a valid new conversation name. The token must provide the conversations:write scope when supplied for authentication.