POST
/admin.conversations.disconnectSharedDisconnect a shared channel
Disconnects a connected channel from one or more workspaces. Supply channel_id and optionally use leaving_team_ids to identify the workspace to remove; only one workspace identifier can currently be specified.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
tokenstringrequired
Authentication token with the `admin.conversations:write` scope.
Form-encoded connected-channel disconnection request. channel_id is required.
channel_idstringrequired
The channel to be disconnected from some workspaces.
leaving_team_idsstringoptional
The team to be removed from the channel. Currently only a single team id can be specified.
200Returns an object with `ok` set to true when the connected channel is disconnected.
okbooleanrequired
defaultReturns an object with `ok` set to false and an `error` value describing why the channel could not be disconnected.
errorstringrequired
okbooleanrequired
Error handling
The token must carry the admin.conversations:write scope. channel_id must identify a connected channel, and leaving_team_ids can contain only a single workspace identifier when provided.