Deployments
Promote a deployment to another environment
Changed onCreates a new deployment in the target environment using the source deployment's Docker image. Useful for promoting a validated preview/staging deployment to production.
post/projects/{project_id}/deployments/{deployment_id}/promote
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Path parameters
project_idinteger required
Project ID
deployment_idinteger required
Source deployment ID to promote
Request body
Response
Promotion initiated successfully
Example response
{
"environment": {
"service_urls": [
{
"port": 3000,
"service": "web",
"url": "https://web--production.localho.st"
}
]
},
"reachability_warning": {
"environment": "myapp-production",
"fixes": [
{
"label": "Publish it through tunnel 'homelab' as myapp-production.example.com"
}
]
}
}Changes
- breaking
the
commit_dateresponse's property type changed fromintegernulltostringnull, and format fromint64todate-timefor status - breaking
the
created_atresponse's property type changed fromintegertostring, and format fromint64todate-timefor status - breaking
the
finished_atresponse's property type changed fromintegernulltostringnull, and format fromint64todate-timefor status
1 more change in this revision
- breaking