slack.setPrivateChannelPurpose replaces a private channel’s plain-text purpose.
Example
automations/set-private-channel-purpose.automation.ts
Inputs
RequireschannelId and the new purpose. Pass an empty string to clear it.
Output
Returns the updated conversation. Requires eithergroups:write or groups:write.topic.