Archive a guardrail set
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.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
Set archived, or it was already archived.
curl -X DELETE 'https://api.kejue.co/v1/guardrail-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08'