Disconnect a channel

deleteChannel(projectReference: ID!, channelId: ID!): DeletionResult!

Requires project.channels.write; API keys also need delete scope.

Arguments

ArgumentTypeRequiredDescription
projectReferenceID!YesProject UUID or slug.
channelIdID!YesChannel to disconnect; the Slack connection is retained.

Response

Returns DeletionResult!. Open the type for its fields and nested types.

FieldTypeDescription
okBoolean!Always true: the deletion was accepted.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
mutation DeleteChannel($projectReference: ID!, $channelId: ID!) {  deleteChannel(projectReference: $projectReference, channelId: $channelId) {    ok  }}
variables.json
{  "projectReference": "00000000-0000-4000-8000-000000000001",  "channelId": "00000000-0000-4000-8000-000000000001"}