Skip to main content
POST
/
applications
/
v1
/
deployments
Create deployment
curl --request POST \
  --url https://api.case.dev/applications/v1/deployments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectId": "<string>",
  "target": "production",
  "ref": "<string>"
}
'

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
projectId
string
required

Project ID

target
enum<string>
default:production

Deployment target

Available options:
production,
preview
ref
string

Git ref (branch, tag, or commit) to deploy

Response

Success