Skip to content
Reset a World runtime override

Reset a World runtime override

Restore a runtime capability to the workspace default.

DELETE/api/v1/worlds/:worldId/integrations/:integration/capabilities/:capability

Request#

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

worldIdUUIDrequired

The World ID returned by POST /worlds or GET /worlds.

integrationstringrequired

An integration key from GET /integrations or /integration-configurations.

capabilitystringrequired

python or javascript. These capabilities belong to the smallworld integration.

Responses#

Returns World configuration with override inherit and effectiveEnabled equal to workspaceEnabled.

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