Skip to main content

update_channel_topic

Facts​

DescriptionUpdate a channel's topic
SchemaSchema.slack.functions.UpdateChannelTopic
Schema referenceslack#/functions/update_channel_topic
Required scopes

Input Parameters​

Required Input Parameters

channel_idSchema.slack.types.channel_idRequired

The ID of the channel to have its topic changed

Examples
C123456
D123ABC456
topicSchema.types.stringRequired

The topic to change to, as a string.

Examples
If you were a sales team, you'd all starve

Output Parameters​

Required Output Parameters

topicSchema.types.stringRequired

The new topic

Examples
This week we're talking turkey stuffing recipes

Usage info​

Change the topic to what's top of mind. Folks like predictable, informative topics. Your workflow must be a member of the conversation.

Example workflow step​

const updateChannelTopicStep = ExampleWorkflow.addStep(
Schema.slack.functions.UpdateChannelTopic,
{
channel_id: "C0123ABC456",
topic: "The main idea in mind",
},
);