Park a policy without deleting it

1 min readEdit this page
POST
/v1/namespaces/{nsid}/policies/{id}/disable

Stamps disabled_at = now(). The engine skips disabled rows when computing effective policy; the management surface still surfaces them so an operator can re-enable. Idempotent — re-disabling returns 200.

Requires the policy:write scope.

Authorization

x-api-key<token>

Anthropic-style API key header.

In: header

Path Parameters

nsid*string

Id of the target namespace. Must be owned by the caller (or equal a namespace-baked credential's own namespace), else 404.

id*string

Surrogate id of the policies row.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/namespaces/string/policies/string/disable"
{}
{  "error": {    "code": "string",    "message": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}

How is this guide?