Skip to content
Remove a group override

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.

DELETE/api/v1/groups/:groupId/tool-policies/:integration/:toolName

Request#

TypeScript
const 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#

groupIdstringrequired

Your application's group ID, URL-encoded. At most 512 characters, with no surrounding whitespace or null bytes.

integrationstringrequired

An integration key from GET /integrations, such as github or notion.

toolNamestringrequired

The 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.

200 response
{
  "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.