Remove a World override
Remove a World's override, so the tool follows the workspace policy again.
DELETE
/api/v1/worlds/:worldId/tool-policies/:integration/:toolNameconst response = await fetch("https://api.smallworld.sh/api/v1/worlds/01995e56-e2d4-7f19-b691-7bf9af6abdc8/tool-policies/acme/get_order", {
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#
worldIdUUIDrequiredThe World ID shown in the dashboard.
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": "acme",
"toolName": "get_order",
"policy": "inherit",
"effectivePolicy": "allow",
"source": "integration_default"
}
More about this endpoint
Removing an override that doesn't exist also succeeds, so a retry is safe.