Hướng dẫn AgentFlow

approve_app_deployment

POST/app-deployments/{deployment_id}/approve
AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Path Parameters

deployment_id*string

Deployment id

Formatuuid

Request Body

application/json

The plan hash shown, and answers that override the stored ones

TypeScript Definitions

Use the request body type in TypeScript.

A person's approval of the plan they were shown.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/app-deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve" \  -H "Content-Type: application/json" \  -d '{    "plan_hash": "string"  }'
{  "app_key": "string",  "approve_url": "string",  "approved_by": null,  "created_at": "2019-08-24T14:15:22Z",  "decisions": {},  "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6",  "from_version": "string",  "installation_id": "91166175-c6a9-4caf-88e9-3147ffc9c934",  "kind": "install",  "name": "string",  "package_id": "string",  "parameters": {},  "plan_findings": [    {      "code": "string",      "logical_key": "string",      "message": "string",      "package_id": "string",      "pointer": "string"    }  ],  "problem": {},  "requested_by": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "kind": "user",    "name": "string"  },  "setup_url": "string",  "status": "awaiting_approval",  "status_reason": null,  "updated_at": "2019-08-24T14:15:22Z",  "version": "string"}