Remove a group override
Remove a group's override, so the tool follows the member's own override, or the World or workspace policy, again.
/api/v1/groups/:groupId/tool-policies/:integration/:toolNameconst response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42/tool-policies/github/issue_write", {
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.
toolNamestringrequiredThe integration's own tool name, as toolName in GET /tool-policies and in tool calls. URL-encode it.
Responses#
Returns integration, toolName, policy (the setting at this level: allow, ask, deny, or inherit when there is no override), effectivePolicy (allow, ask, or deny), and source: integration_default, world_override, group_override, user_override, workspace_hidden, group_hidden, or disabled. policy is inherit after removal.
{
"integration": "github",
"toolName": "issue_write",
"policy": "inherit",
"effectivePolicy": "ask",
"source": "integration_default",
"hiddenInWorlds": []
}
More about this endpoint
Removing an override that doesn't exist also succeeds, so a retry is safe.