Projects
Approve a run's plan
- NOT_FOUND when no run has that resource name.
- FAILED_PRECONDITION when
plan_digestis not the run's plan, or the run is not PLANNED.
- FAILED_PRECONDITION when
Scope: run:write
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
The project id.
The environment id.
The run id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/projects/string/environments/string/runs/string/approve" \ -H "Content-Type: application/json" \ -d '{ "plan_digest": "string" }'{ "approval": { "plan_digest": "string", "reason": "string", "approved_by": { "id": "string", "display_name": "string", "email": "string" }, "approved_at": "2023-01-15T01:30:15.01Z" }}Apply a run POST
- NOT_FOUND when no run has that resource name. - FAILED_PRECONDITION when the run is not PLANNED, an approval in `required_approval` is missing, the change set is behind, or the environment is held. Scope: `run:apply`
Cancel a run POST
- NOT_FOUND when no run has that resource name. - FAILED_PRECONDITION when the run has finished applying. Scope: `run:write`