POST
/admin.conversations.convertToPrivateConvert a channel to private
Converts a public channel to a private channel. Supply channel_id in the form body and authenticate with a token that has the admin.conversations:write scope.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
tokenstringrequired
Authentication token with the `admin.conversations:write` scope.
Form-encoded channel conversion request.
channel_idstringrequired
The channel to convert to private.
200Returns an object with `ok` set to true when the channel is converted.
okbooleanrequired
defaultReturns an object with `ok` set to false and an `error` value describing why the channel could not be converted.
errorstringrequired
okbooleanrequired
Error handling
The token must carry the admin.conversations:write scope. channel_id must identify a public channel that can be converted to private.