Sign off or reject a snapshot
Records the caller's decision about the snapshot the deployment runs, in the stage it sits in: a sign-off, a sign-off with known issues where the stage accepts them, or a rejection with its reason. The snapshot's author cannot decide when the stage says so, and a person decides once. Answers the qua
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
decision*string"signoff""issues""reject"note?stringlength <= 1000reason?stringRequired to reject.
length <= 1000The qualification after the decision.
application/json- response
How a snapshot fares in the stage of its deployment. A snapshot the deployment no longer runs keeps the checks it last had; one that was still qualifying then is superseded.
configured*booleanagent*The agent that reads each snapshot for the person who signs off. Its read is advice for the approver, never a sign-off. The agent id is stored as written; it is checked against the agents once they exist (M6).
agentRead*|What the agent set to read this stage's snapshots made of this one: advice for the person who signs off, never a sign-off. Null when none has read it, which is always until agents ship (M6).
snapshot*The snapshot a qualification is about.
verdict*string"unknown""qualifying""qualified""rejected""superseded"running*booleanThe deployment runs this snapshot now. Only the running snapshot is judged afresh.
reason*stringWhy it is not qualified yet, or why it was rejected. Empty once qualified.
changedAt?|When the verdict last changed.
date-timestage*|The stage that judges it; null when none does.
checks*array<>signoffs*array<>The decisions people made, oldest first.
sign*Whether the caller may sign off, and why not when they may not, so a screen can say it instead of hiding a button.
curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots/497f6eca-6276-4993-bfeb-53cbbbba6f08/signoffs' \ -H 'Content-Type: application/json' \ -d '{ "decision": "signoff"}'{ "configured": true, "agent": { "mode": "off", "agentId": "string" }, "agentRead": null, "snapshot": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "contentId": "string", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string" }, "verdict": "unknown", "running": true, "reason": "string", "changedAt": "2019-08-24T14:15:22Z", "stage": null, "checks": [ { "ruleId": "string", "type": "test", "title": "string", "result": "string", "progress": 0, "state": "passed", "fatal": true, "why": "string" } ], "signoffs": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "decision": "signoff", "note": "string", "reason": "string", "by": { "id": "string", "name": "string" }, "at": "2019-08-24T14:15:22Z" } ], "sign": { "can": true, "reason": "string", "needed": 0, "signed": 0, "allowIssues": true }}List how a deployment's snapshots qualify GET
How each snapshot of the deployment that was judged in its pipeline stage fares, newest first, in one read for a history to show. The running snapshot is judged afresh; the others are as they were last worked out. A snapshot never judged is not listed, and a deployment in no stage lists none.
List a deployment's snapshots GET
The snapshots of the deployment, newest first, each without its manifest. A snapshot a render guard held shows its review state.