Hướng dẫn AgentFlow

create_sandbox

POST/sandboxes
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

Request Body

application/json

The sandbox's name and lifetime, its sandbox.json, and the secrets of the connections it declares

TypeScript Definitions

Use the request body type in TypeScript.

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

application/problem+json

curl -X POST "https://example.com/sandboxes" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "spec": {}  }'
{  "base_url": "string",  "created_at": "2019-08-24T14:15:22Z",  "deploy_key": "string",  "expires_at": "2019-08-24T14:15:22Z",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "ids": {    "connections": {      "property1": "string",      "property2": "string"    },    "groups": {      "property1": "string",      "property2": "string"    },    "principals": {      "property1": "string",      "property2": "string"    },    "units": {      "property1": "string",      "property2": "string"    }  },  "install": {    "decisions": {},    "parameters": {}  },  "name": "string",  "owner": "string",  "people": {    "property1": {      "token": "string",      "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"    },    "property2": {      "token": "string",      "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"    }  }}