archive_channel
Facts
DescriptionArchive a channel
Schema
Schema.slack.functions.ArchiveChannelSchema reference
slack#/functions/archive_channelRequired scopes
Input Parameters
Required Input Parameters
channel_idSchema.slack.types.channel_idRequiredThe conversation ID for the channel you are archiving
Examples
C123456D123ABC456Output Parameters
Required Output Parameters
channel_idSchema.slack.types.channel_idRequiredThe conversation ID for the channel you archived
Examples
C123456D123ABC456Usage info
Not all conversations need to continue forever, so when the project is done, this function archives the channel, preventing new messages from being posted while preserving its history.
Example workflow step
const archiveChannelStep = ExampleWorkflow.addStep(
Schema.slack.functions.ArchiveChannel,
{
channel_id: "C0123ABC456",
},
);