Deployments
Preview

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

POST
/deployments/{deploymentId}/snapshots/{snapshotId}/bypass-requests
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
snapshotId*string
Formatuuid
Idempotency-Key?string

Makes 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.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
reason*string
Length1 <= length <= 1000
ruleIds?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.

Response Body

The request.

application/json
  1. response
number*integer

The organization's count of bypass requests, from 1, in the order they were made.

ref*string

The 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*string
Formatuuid
deploymentId*string
Formatuuid
snapshotId*string
Formatuuid
commit?string

The commit the snapshot was made from. Set on a list, so a screen need not read each snapshot for it.

reason*string
requestedBy*
state*string
Value in"open""granted""declined""superseded"
requestedAt*string
Formatdate-time
decidedBy?
decidedAt?string
Formatdate-time
decisionNote*string
Example Request
curl -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"}'
Example Response
{  "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"}