Skip to main content

toggleIntegrationEnabled

Requires permission settings:integration:update.

Switches an integration on or off, whichever it is not now. Switching on validates it first. Requires permission to update integrations.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ToggleIntegrationEnabled($id: String!) {
toggleIntegrationEnabled(id: $id) {
id
displayName
serviceName
createdAt
config
description
}
}

Variables:

{
"id": "string"
}

Response:

{
"data": {
"toggleIntegrationEnabled": {
"id": "id",
"displayName": "string",
"serviceName": "AMAZON",
"createdAt": "2025-01-15T00:00:00Z",
"config": {},
"description": "string"
}
}
}
toggleIntegrationEnabled(
id: String!
): IntegrationSetting!

Arguments​

toggleIntegrationEnabled.id ● String! non-null scalar​

The ID of the integration.

Type​

IntegrationSetting object​

An integration setting.