Ask for a bypass
Asks someone who holds the bypass duty to let a snapshot the guardrails hold deploy anyway, once, with a reason. The person who asked cannot decide it. Someone who holds the duty bypasses directly instead (409 `bypass.use_direct`); a snapshot nothing holds has nothing to bypass (409 `guardrail.not_b
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidsnapshotId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
reason*string1 <= length <= 1000ruleIds?array<string>The guardrail rules the bypass skips, each one holding the snapshot now (409 bypass.rule_not_holding otherwise). Left out, it skips every rule that holds the snapshot. A rule it does not name still holds it.
The request.
application/json- response
number*integerThe organization's count of bypass requests, from 1, in the order they were made.
ref*stringThe number as people say it, BR-17.
ruleIds*array<string>The rules the bypass skips; none means every rule that holds the snapshot.
holds*array<>The requirements that hold the snapshot now, which a granted bypass lets it through, as the guardrails judge it for the person who asked. Set for an open request, in a list too (judged once for the page); empty once it is decided.
stillApplies*array<>The other requirements that apply to the snapshot. Set for an open request, in a list too; empty once it is decided.
id*stringuuiddeploymentId*stringuuidsnapshotId*stringuuidcommit?stringThe commit the snapshot was made from. Set on a list, so a screen need not read each snapshot for it.
reason*stringrequestedBy*state*string"open""granted""declined""superseded"requestedAt*stringdate-timedecidedBy?decidedAt?stringdate-timedecisionNote*stringcurl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08/bypass-requests' \ -H 'Content-Type: application/json' \ -d '{ "reason": "string"}'{ "number": 0, "ref": "string", "ruleIds": [ "string" ], "holds": [ { "ruleId": "string", "rule": "string", "setBy": "string", "label": "string", "status": "string" } ], "stillApplies": [ { "ruleId": "string", "rule": "string", "setBy": "string", "label": "string", "status": "string" } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "commit": "string", "reason": "string", "requestedBy": { "id": "string", "name": "string" }, "state": "open", "requestedAt": "2019-08-24T14:15:22Z", "decidedBy": { "id": "string", "name": "string" }, "decidedAt": "2019-08-24T14:15:22Z", "decisionNote": "string"}Get the approval request of a snapshot GET
The request for approvals a snapshot has at this deployment, with the approvals given so far, what the guardrails say now, and whether the caller may decide on it. A snapshot the guardrails never held for approvals has none: 404.
Release a held snapshot POST
A render that is empty, or that removes more of the deployment's objects than the guard allows, is stored as a snapshot but held. Releasing approves it: the deployment then wants it, and it is applied like any other snapshot unless the deployment only observes. A snapshot that is not held is a confl