POST/deployments

Create a new deployment.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

multipart/form-data

App deployment data

TypeScript Definitions

Use the request body type in TypeScript.

App deployment request. Provide either file+entrypoint_rel_path or source.

App deployment request. Provide either file+entrypoint_rel_path or source.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/deployments" \  -F version="1.0.0" \  -F file="<binary>" \  -F entrypoint_rel_path="src/app.py" \  -F region="aws.us-east-1a" \  -F force="false" \  -F env_vars="{    \"FOO\": \"bar\"  }"
{  "id": "string",  "status": "queued",  "status_reason": "string",  "region": "aws.us-east-1a",  "entrypoint_rel_path": "string",  "env_vars": {    "property1": "string",    "property2": "string"  },  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "source_type": "file",  "source_url": "string",  "source_ref": "string",  "source_path": "string",  "source_checksum": "string"}