Search

Rename Conversation

Last Updated: May 27, 2021

Articles

Use this function to rename a conversation in the slack application with the given new name.

Syntax

Rename Conversation (token, channel_id, new_name)

Parameters

Input Parameter Name Description
token Authentication token
channel_id ID of the channel to rename
new_name Name of the channel to be given

  • To know more about token, click here.
  • To view the Channel ID, right click on the channel name in the left menu and select Copy link in Slack. Paste in a text editor, the URL is of the format: https://<Slack URL>/<Channel ID>.

Returns

Return Value Description
Output
  • On Success returns 1 | Conversation Renamed Successfully
  • On Failure returns 0 | Error Message

Sample

Rename Conversation (xoxp-12QWERT, ABC123, Sprints)

  • Uses token xoxp-12QWERT to authenticate connection to Slack, remanes the conversation with ID ABC123 with the new name Sprints.
    Returns Conversation Renamed Successfully on renaming the channel.

To view all the Slack functions, click here.

Did you find what you were looking for?