admin_conversations_disconnectShared
POST
/admin.conversations.disconnectShared https://slack.com/api
Disconnect a connected channel from one or more workspaces.
Parameters
header Header Parameters
| Name | Type |
|---|---|
token
required
Authentication token. Requires scope: | string |
Request Body
application/x-www-form-urlencoded
required
{ channel_id: string;leaving_team_ids?: string; }
Responses
200 application/json
Typical success response
{ ok: DefsOkTrue ; }
default application/json
Typical error response
{ error: "feature_not_enabled" | "not_an_admin" | "not_an_enterprise" | "channel_not_found" | "not_supported" | "team_not_found" | "restricted_action" | "missing_scope" | "leaving_team_not_in_channel" | "no_teams_to_disconnect" | "leaving_team_required" | "cannot_kick_team" | "cannot_kick_home_team";ok: DefsOkFalse ; }