Disconnect a group integration
Disconnect a group's own account from an integration.
/api/v1/groups/:groupId/connections/:integrationconst response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42/connections/github", {
method: "DELETE",
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
Use your server-side apiKey. Replace the example IDs.
Path parameters#
groupIdstringrequiredYour application's group ID, URL-encoded. At most 512 characters, with no surrounding whitespace or null bytes.
integrationstringrequiredAn integration key from GET /integrations, such as github or notion.
Responses#
Returns deleted: true. Disconnecting an integration the group has no connection to also succeeds.
{
"deleted": true
}
More about this endpoint
Smallworld removes its stored credentials for the group and cancels the group's in-flight connect sessions for the integration.
Members without a connection of their own lose the integration from their next tool call; a call waiting for approval on the group's connection ends interrupted with errorCode integration_connection_stale. Members' own connections are not affected.