Add Task Review
POST /tasks/{taskId}/review
/tasks/{taskId}/reviewRecords the caller's decision (Approved, Changes Requested, or No Response to withdraw it) in the task's open review run, runId from currentRun on ProjectManagement_GetTask. Only a member of the active stage can review; Changes Requested needs a comment and ends the run. onBehalf decides the whole active stage for its reviewers and needs Task.Manage on the task, as does any decision on a review-required leaf with no route. runId may be left out only for the first review of a plain task with a route outside Done and Archived, which starts its run; a run that has ended is refused. Needs Task.Participate on the task, with an event token, or with an organization token for an organization-level task or a record's, org activity's or org order's tracking leaf (taskId from its tracking block), where an OrgCrew member decides as their user and an approved leaf completes.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| taskId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| runId | uuid | Optional | |
| response | string | Optional | |
| comment | string | Optional | |
| onBehalf | boolean | Optional |