API referenceAdmin
Enable or disable a platform permission policy
Toggles one platform policy and records an audit event. Platform admins only; an unknown `policyId` is reported as not found.
PATCH
apiKeyheader
AuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
policyId*stringapplication/json- body
enabled*booleanSuccess
application/json- response
data*Example Request
curl -X PATCH 'https://api.snoze.dev/v1/admin/policies/string' \ -H 'Content-Type: application/json' \ -d '{ "enabled": true}'Example Response
{ "data": { "id": "string", "name": "string", "description": "string", "enabled": true, "appliesTo": "string" }}