Promote deployment
🆕 Promote to chain environment
Promotes an existing chain deployment to an environment and returns the promoted chain deployment.
Authorizations
Authorization
string
headerrequiredYou must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>
Path Parameters
chain_id
string
requiredenv_name
string
requiredBody
application/json
A request to promote a deployment to a environment.
scale_down_previous_deployment
boolean
default: trueWhether to scale down the previous deployment after promoting
deployment_id
string
requiredThe id of the chain deployment to promote
Response
200 - application/json
A deployment of a chain.
id
string
requiredUnique identifier of the chain deployment
created_at
string
requiredTime the chain deployment was created in ISO 8601 format
chain_id
string
requiredUnique identifier of the chain
environment
string | null
requiredEnvironment the chain deployment is deployed in
chainlets
object[]
requiredChainlets in the chain deployment
status
enum<string>
requiredStatus of the chain deployment
Available options:
BUILDING
, DEPLOYING
, DEPLOY_FAILED
, LOADING_MODEL
, ACTIVE
, UNHEALTHY
, BUILD_FAILED
, BUILD_STOPPED
, DEACTIVATING
, INACTIVE
, FAILED
, UPDATING
, SCALED_TO_ZERO
, WAKING_UP