Promote Deployment
POST /apps/{app_id}/deployments/{deployment_id}/promote
POST
/apps/{app_id}/deployments/{deployment_id}/promote
Promote a built deployment to serve traffic.
409 when the state machine forbids it — a deployment cannot become
deployed without having been built, and a failed one cannot be revived.
Authorizations
Parameters
Path Parameters
app_id
required
string
deployment_id
required
string
Header Parameters
Request Body required
object
image_digest
required
The built image digest being promoted. Recorded so a rollback targets an artifact rather than a rebuild.
string
Responses
200
Successful Response
object
data
required
object
app_id
required
string
deployment_id
required
string
status
required
string
pagination
Any of:
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string