Skip to main content
The Administration API uses the same policies as the Abliteration Console. Create or edit a draft, then publish it when the change is ready to affect inference requests.

Policy lifecycle

  1. Create a draft with POST /v1/organization/policies.
  2. Edit selected draft fields with PATCH /v1/organization/policies/{policy_id}.
  3. Publish the draft with POST /v1/organization/policies/{policy_id}/publish.
  4. Pause or resume the published version without creating another version.
Every policy response includes a revision. Send the latest revision with an update or lifecycle action. If another caller changes the policy first, the API returns 409 policy_revision_conflict instead of overwriting that change.

Create a draft

Policy rules are yes-or-no questions ending in a question mark.
direction is request, response, or both. mode is monitoring or enforcing. scope is one of: match_threshold_basis_points is optional. For example, 9000 means 90 percent. Omit it to use the platform default.

Edit the draft

PATCH changes only the fields you include. It does not change the published version. Set match_threshold_basis_points to null to return to the platform default.
When changing a policy to scope: "projects", include at least one project ID. Changing it to organization or unattached clears its project selection.

Publish the draft

Publishing creates the next immutable version and makes it the current published version.
Editing a published policy creates unpublished draft changes. Inference keeps using the current published version until you publish again.

Pause or resume a policy

Pausing stops the policy from applying automatically. Resuming restores the same published version and mode.
Use the corresponding /resume path and the latest revision to resume it. Pausing a draft or resuming an active policy returns 409 policy_state_conflict.

Read versions and effective policies

The effective-policy response excludes paused, draft-only, and unattached policies. See Policies in API requests to select an unattached policy for one inference request.

Delete a policy

Deletion requires the latest revision and removes the policy from list, retrieve, and runtime resolution operations.
Last modified on October 1, 2026