Decide a playbook run approval

View as Markdown
Approves or rejects a pending approval on the run — either a pre-action gate (allow the action to run) or a post-action output review. Authorization: `space:contribute` (org admins bypass); missing → 403. Body: `decision` ("approve" | "reject", required); optional `note` (≤4000 chars); and, when approving, you may edit before proceeding — `editedParams` (override the action params), `editedFileIds` (1–200, override the input files), `editedOutput` (override the reviewed output). The request body is capped at 1 MiB → 413 `payload_too_large` if exceeded. Returns 200 `{ data: Approval }` with the updated approval.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

spaceIdstringRequired
runIdstringRequired
approvalIdstringRequired

Request

The whole body is capped at 1 MiB (413 payload_too_large beyond it).

decisionenumRequired
Allowed values:
notestringOptional<=4000 characters
Required when rejecting.
editedParamsmap from strings to anyOptional
Override the action parameters.
editedFileIdslist of stringsOptional
editedOutputanyOptional
Override the reviewed output.

Response

The updated approval.
dataobject

Errors

413
Content Too Large Error