Skip to navigation

Decide approval

Beta

Record the caller’s decision on an active approval; the waiting run resumes once the mode’s aggregation settles it. The caller must be one of the approval’s listed approvers and still satisfy the selector that named them, and may not decide what they published or started unless the step allows self-approval. An edited_payload is accepted only against the approval’s editable_schema; a standing request only when the approval’s gate allows standing grants, on an approving option (otherwise 400 with detail.reason standing_not_allowed). Every refusal carries detail.reason with the decision service’s code. Where the installation enforces passkey checks, an approve needs a check covering this decision in the X-Athena-Decision-Check header (otherwise 403 with detail.reason decision_check_required), and the person’s device key may then decide with one.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

approval_idstringRequired
Unique identifier of the approval

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
optionstringRequired

One of the options the approval offered (e.g. approve, reject)

edited_payloadmap from strings to any or nullOptional
The edited subject, when the approval allows edits
notestring or nullOptional
A note recorded with the decision
standingobject or nullOptional

A standing-grant request; refused with detail.reason standing_not_allowed unless the approval’s gate allows standing grants, and only with an approving option

Response

Decision recorded
approval_idstring
decided_bystring
Principal ref of the decider
decision_idstring
grant_idstring or null
The approval grant written with a settling decision
outcomestring or null
The aggregated result when this decision settled the approval
settledboolean

Whether this decision settled the approval (the run resumes)

statestring
The approval's state after the decision

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
503
Service Unavailable Error