Starts a new deployment for an existing project using its saved repository and hosting configuration. Any environment variables passed in the request are merged into the deployment workflow before the build starts.
curl --request POST \
--url https://api.case.dev/applications/v1/projects/{id}/deployments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"environmentVariables": [
{
"key": "<string>",
"value": "<string>",
"target": [
"production"
],
"type": "encrypted"
}
]
}
'API key starting with sk_case_
Project ID
Additional environment variables to set or update before deployment
Show child attributes
Deployment workflow started successfully
Was this page helpful?
curl --request POST \
--url https://api.case.dev/applications/v1/projects/{id}/deployments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"environmentVariables": [
{
"key": "<string>",
"value": "<string>",
"target": [
"production"
],
"type": "encrypted"
}
]
}
'