Admiral

Projects

Approve a run's plan

POST
/v1/projects/{project}/environments/{environment}/runs/{run}/approve
  • NOT_FOUND when no run has that resource name.
    • FAILED_PRECONDITION when plan_digest is not the run's plan, or the run is not PLANNED.

Scope: run:write

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

project*string

The project id.

environment*string

The environment id.

run*string

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"  }}