Get a stored policy decision
A decision as it was made when a deploy was held or let through: every rule with its verdict and the facts it read, and the versions of the rules it used, even if the rules have changed since. Activity entries link to it by `decisionId`. A decision on a deployment the caller cannot read does not exi
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
decisionId*stringuuidThe decision.
application/json- response
id*stringuuiddeploymentId?stringuuidsnapshotId?stringuuidaction*stringactor*outcome*string"allowed""needs""wait""blocked"createdAt*stringdate-timerules*array<>missing*array<string>curl -X GET 'https://wardn.example.com/api/v1/policy-decisions/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "action": "string", "actor": { "kind": "string", "id": "string" }, "outcome": "allowed", "createdAt": "2019-08-24T14:15:22Z", "rules": [ { "ruleId": "string", "version": 0, "name": "string", "source": "string", "mode": "enforce", "applies": true, "skipped": "string", "verdict": "met", "requirements": [ { "id": "string", "label": "string", "group": "string", "verdict": "met", "expected": "string", "reason": "string", "reads": [ { "name": "string", "value": "string", "reason": "string" } ] } ] } ], "missing": [ "string" ]}Ask whether a snapshot could go to a deployment POST
Runs the check a real promotion runs, with the facts the caller chose to change (a different time, requester or snapshot), and stores nothing. The answer is what the Evaluator draws: the verdict, every rule that applies with the facts it read, what would unblock it and who can, what the requester ma
The signed-in caller GET
Next Page