Turn an integration off for a group
Turn an integration off for a group's sessions, or let it follow the workspace and the World again.
/api/v1/groups/:groupId/integrations/:integrationconst response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42/integrations/github", {
method: "PUT",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({
"enabled": false
}),
});
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.
Request body#
enabledbooleanrequiredfalse turns the integration off for the group's sessions. true follows the workspace and the World again.
Responses#
Returns integration and enabled. enabled is false only when the group turned the integration off; true doesn't mean the workspace and the World enable it.
{
"integration": "github",
"enabled": false
}
More about this endpoint
A group can only turn an integration off. It then is unavailable in every session of the group, also on a member's own account. Workspace and World availability stay prerequisites: enabled: true never enables an integration they leave off. Sessions of another group, and groupless sessions, are unaffected.
Turning an integration off takes effect on the next tool call. A call waiting for approval can then no longer be approved; deny it or let it expire.