Creates a deployment for an existing project by fetching repository files from GitHub and uploading them to the hosting provider. Use ref to deploy a branch, tag, or commit other than the project default branch.
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>"
}
'API key starting with sk_case_
Deployment started successfully
Was this page helpful?
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>"
}
'