conversations_rename
POST
/conversations.rename https://slack.com/api
Renames a conversation.
Parameters
header Header Parameters
| Name | Type |
|---|---|
token Authentication token. Requires scope: | string |
Request Body
application/x-www-form-urlencoded
{ channel?: string;name?: string; }
Responses
200 application/json
Typical success response
{ channel: ObjsConversation ;ok: DefsOkTrue ; }
default application/json
Typical error response when the calling user is not a member of the conversation
{
callstack?: string;
error: "user_is_restricted" | "method_not_supported_for_channel_type" | "missing_scope" | "channel_not_found" | "not_in_channel" | "not_authorized" | "invalid_name" | "name_taken" | "invalid_name_required" | "invalid_name_punctuation" | "invalid_name_maxlength" | "invalid_name_specials" | "not_authed" | "invalid_auth" | "account_inactive" | "invalid_arg_name" | "invalid_array_arg" | "invalid_charset" | "invalid_form_data" | "invalid_post_type" | "missing_post_type" | "invalid_json" | "json_not_object" | "request_timeout" | "upgrade_required";
needed?: string;
ok:DefsOkFalse ;
provided?: string;
}
callstack?: string;
error: "user_is_restricted" | "method_not_supported_for_channel_type" | "missing_scope" | "channel_not_found" | "not_in_channel" | "not_authorized" | "invalid_name" | "name_taken" | "invalid_name_required" | "invalid_name_punctuation" | "invalid_name_maxlength" | "invalid_name_specials" | "not_authed" | "invalid_auth" | "account_inactive" | "invalid_arg_name" | "invalid_array_arg" | "invalid_charset" | "invalid_form_data" | "invalid_post_type" | "missing_post_type" | "invalid_json" | "json_not_object" | "request_timeout" | "upgrade_required";
needed?: string;
ok:
provided?: string;
}