Reset a World runtime override
Restore a runtime capability to the workspace default.
DELETE
/api/v1/worlds/:worldId/integrations/:integration/capabilities/:capabilityconst response = await fetch("https://api.smallworld.sh/api/v1/worlds/01995e56-e2d4-7f19-b691-7bf9af6abdc8/integrations/smallworld/capabilities/python", {
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 returned by POST /worlds or GET /worlds.
integrationstringrequiredAn integration key from GET /integrations or /integration-configurations.
capabilitystringrequiredpython or javascript. These capabilities belong to the smallworld integration.
Responses#
Returns World configuration with override inherit and effectiveEnabled equal to workspaceEnabled.
{
"worldId": "01995e56-e2d4-7f19-b691-7bf9af6abdc8",
"integration": "smallworld",
"enabled": true,
"alwaysEnabled": true,
"toolPolicies": [],
"capabilities": [
{
"key": "python",
"title": "Python",
"description": "Run Python code.",
"command": "python3",
"override": "inherit",
"workspaceEnabled": true,
"effectiveEnabled": true
}
]
}