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
The identifier of the action run you want to approve/decline.
- application/json
Body
required
Possible values: [APPROVE
, DECLINE
]
A description and/or reason for the given status.
Responsesโ
- 201
- 403
- 404
- 422
- 500
Approved/declined successfully.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [true
]
run
object
blueprint
object
entity
object
action
object
required
requiredApproval
boolean,object
required
Possible values: [ALL
, ANY
]
approval
object,null
payload
object,null
headers
object
body
object
port_context
object
{
"ok": true,
"run": {
"id": "string",
"blueprint": {
"identifier": "string",
"deleted": true
},
"entity": {
"identifier": "string",
"deleted": true
},
"action": {
"identifier": "string",
"deleted": true
},
"properties": {},
"endedAt": "2024-07-29T15:51:28.071Z",
"status": "string",
"summary": "string",
"createdBy": "string",
"updatedBy": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z"
}
}
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 |