Deplo
API Reference

Create a deployment for an existing project

POST
/projects/{projectId}/deployments
AuthorizationBearer <token>

Enter your JWT token

In: header

Path Parameters

projectId*string

Project ID

Header Parameters

X-Workspace-Id?string

Required when authenticating with a JWT

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/projects/string/deployments" \  -H "Content-Type: application/json" \  -d '{    "type": "static_file",    "files": [      {        "path": "index.html",        "content": "string"      }    ]  }'
{
  "id": "dep_abc123",
  "url": "https://weekly-report.deplo.sh",
  "version": 3
}
Empty
Empty
Empty