Search + K

Command Palette

Search for a command to run...

Sign In

admin_conversations_disconnectShared

POST /admin.conversations.disconnectShared
Copy endpoint
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: admin.conversations:write

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
type DefsOkTrue = true
; }
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
type DefsOkFalse = false
; }