Approve an action run
PATCH/v1/actions/runs/:run_id/approval
This route allows you to approve or decline a request to execute an action that requires approval.
To learn more about manual approval for actions, check out the documentation.
Request
Path Parameters
run_id stringrequired
The identifier of the action run you want to approve/decline.
- application/json
Body
required
status stringrequired
Possible values: [APPROVE
, DECLINE
]
description string
A description and/or reason for the given status.
Responses
- 200
- 403
- 404
- 422
- 500
Success
One of the following errors occurred:
Error | Description |
---|---|
missing_permissions | You are not permitted to approve this action. For further details, please contact your admin |
One of the following errors occurred:
Error | Description |
---|---|
not_found | The action run with the provided identifier was not found |
One of the following errors occurred:
Error | Description |
---|---|
invalid_request | The data provided does not match the route schema |
run_not_waiting_for_approval | Action run is not waiting for approval |
One of the following errors occurred:
Error | Description |
---|---|
internal_error | An internal error occurred |
Loading...