Skip to Content
Guardrails

Archive a guardrail set

Permissionguardrail-sets:deleteAdd-onGuardrailsAuthentication
DELETE
/guardrail-sets/{id}

Soft-archives the set without deleting its audit and history identity.

Blocked while an agent still references it

The request is rejected with 409 guardrail_set_in_use while any non-archived agent's active draft, staging or production pointer references this UUID. The error details list every blocking pointer, in deterministic agent-slug then draft/staging/production order.

Remove the UUID from a new draft and advance the required staging and production pointers before retrying. Inactive historical versions do not block archive.

Repeating DELETE after archive is an audited 204 no-op.

If-Match is optional: omitting it archives unconditionally, * accepts the current representation, and one or a comma-separated list of strong tags is accepted when any tag matches. A malformed or weak validator returns 400; stale strong tags return 412 with the current ETag. Any request body returns 400 unexpected_body.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Response Body

Set archived, or it was already archived.

Example Request
curl -X DELETE 'https://api.kejue.co/v1/guardrail-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty