approvals

Approve or deny. Needs a person: never an API key, a connected app or a service account.

An approver on a browser session with a fresh proof in x-50h-reauth (spent by the decision), or in the app with a confirmationId. The typed reason goes to the agent and the audit trail. 403 separation_of_duties when the approver's own key made the ask (unless the policy allows it under an amount), 403 not_an_approver, 403 confirm_required (the app has not confirmed it is them, or the confirmation was used or is too old), 409 approval_decided or approval_expired. Approving the last approval a policy needs makes the question live; denying releases the held credits.

post/v1/approvals/{id}/decision

Request

  • Base URL: https://api.50heads.com
  • URL: https://api.50heads.com/v1/approvals/{id}/decision
  • Auth: HTTP bearer

Path parameters

idstring required

The approval id.

Request body

decision'approve' | 'deny' required
reasonstring
confirmationIdstring

Response

OK

outcome'approved' | 'denied' | 'recorded' required

Changes

No recorded changes to this operation across all 1 revision of this API.