Approve a task

Runs under a row lock on the owning request, so a request resolves
exactly once.

Checks, in order:

  1. The task's approverIds contain the caller's sub (403); a task
    with no approverIds never matches.
  2. The caller is not the request's initiatedBy (403, four-eyes).
  3. The task is PENDING (409).
  4. No task at a lower step is still PENDING (409).

The task becomes APPROVED with actedBy the caller's sub; when
every task is, the request does too and the resolution is published
to policy.decided.

Recipes
Read approval tasks and submit a decision
Open Recipe
Path Params
uuid
required
Body Params

Optional body for approve and reject.

string
length ≤ 1000
Headers
string
required
^\d+\.\d+\.\d+$

The version of the Quant Flow API the request follows, as major.minor.patch (for example 1.0.0). The request is interpreted, and the response shaped, according to that version.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json