Apply an earlier snapshot again
Makes the snapshot the one the deployment wants and applies it through the normal path, with jobs running their undo in place of their forward work. The preflight runs first and its findings come back. When it found something blocking and no bypass was given, nothing is applied and `status` is `bloc
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
incidentId?stringAn incident, by id or number (INC-12). With an open Sev 1 or 2 incident, someone who holds restore:bypass restores past the guardrails that govern restores; Activity marks it break-glass and the notification routes are told. It needs a reason.
reason?stringWhy the deployment goes back, kept in Activity with the restore.
length <= 1024bypass?Overrides blocking findings. Needs the restore:bypass permission.
The restore was queued, or blocked by the preflight.
application/json- response
breakGlass*booleanAn open Sev 1 or 2 incident let it go past the guardrails.
rules*array<>status*stringAwaiting approval: only approvals someone can still give hold the restore, so a request is open in the approvals inbox and the restore goes ahead when it is approved.
"queued""blocked""awaiting_approval"approvalRequestId?stringThe request the restore waits for, when it waits.
uuidcommandId?stringThe apply command, when queued.
uuidbypassed*booleanfindings*array<>curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08/restore' \ -H 'Content-Type: application/json' \ -d '{}'{ "breakGlass": true, "rules": [ { "title": "string", "setBy": "string", "status": "met", "message": "string" } ], "status": "queued", "approvalRequestId": "62a09f2a-7fb7-4e24-a2af-6c58e85c4c08", "commandId": "9e2dd63c-3478-489f-86d3-8c292a65a0aa", "bypassed": true, "findings": [ { "code": "image.unresolvable", "severity": "blocking", "message": "string", "subject": "string" } ]}Check what restoring a snapshot would run into GET
Runs the checks a restore runs first, and changes nothing. Blocking findings stop a restore unless it is bypassed; warnings do not.
Let a snapshot through the guardrails that hold it POST
A guardrail can hold a snapshot: the protected-branch rule of a guarded environment, a window, a missing approval. Bypassing lets that one snapshot deploy anyway, once, with a reason that Activity records; the next snapshot meets the guardrails again. It is for people who hold the bypass duty. Other