Release a held snapshot
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
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 <= 255The snapshot's review, as decided.
application/json- response
Why a render was held back from being applied, and what a person decided.
snapshotId*stringuuiddeploymentId*stringuuidcommit*stringThe commit the snapshot was rendered from.
state*string"held""released""discarded"reason*stringempty is a render with no objects; mass_removal removes more of the current snapshot's objects than the guard allows.
"empty""mass_removal"message*stringobjectsBefore*integerHow many objects the deployment's current snapshot holds.
objectsAfter*integerHow many objects this snapshot holds.
objectsRemoved*integerHow many of the current snapshot's objects this one lacks.
heldAt*stringdate-timedecidedBy?stringWho released or discarded it. Absent while it is held.
decidedAt?stringdate-timecurl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08/release'{ "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "commit": "string", "state": "held", "reason": "empty", "message": "string", "objectsBefore": 0, "objectsAfter": 0, "objectsRemoved": 0, "heldAt": "2019-08-24T14:15:22Z", "decidedBy": "string", "decidedAt": "2019-08-24T14:15:22Z"}Ask for a bypass POST
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
Discard a held snapshot POST
Refuses a held snapshot for good. The deployment keeps running what it ran, and a later commit renders a new snapshot. A snapshot that is not held is a conflict.