policies

Delete policy

Deletes a compiled custom Rego policy from the live authorization engine. Any subsequent POST /authz/check that still names this policy_id falls through to the built-in static policy (policy.rego) rather than erroring — a deleted policy silently stops narrowing/widening decisions rather than breaking the check endpoint.

delete/policies/{id}

Request

  • Base URL: https://api.instruxi.dev/api/v1/enforcer
  • URL: https://api.instruxi.dev/api/v1/enforcer/policies/{id}
  • Auth: one of:
    • API key in header Authorization
    • API key in header X-API-Key

Path parameters

idstring required

id

Response

OK

successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.