v1

latestOpenAPI 3.1.02026-07-26157321426.3 KB

Promotes a chain deployment to an environment

Promotes an existing chain deployment to an environment and returns the promoted chain deployment.

post/v1/chains/{chain_id}/environments/{env_name}/promote

Request body

scale_down_previous_deploymentboolean

Whether to scale down the previous deployment after promoting

deployment_idstring required

The id of the chain deployment to promote

Example request

{
  "scale_down_previous_deployment": true
}

Response

idstring required

Unique identifier of the chain deployment

created_atstring date-time required

Time the chain deployment was created in ISO 8601 format

chain_idstring required

Unique identifier of the chain

environmentstring nullable required

Environment the chain deployment is deployed in

status'BUILDING' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'LOADING_MODEL' | 'ACTIVE' | 'UNHEALTHY' | 'BUILD_FAILED' | 'BUILD_STOPPED' | 'DEACTIVATING' | 'INACTIVE' | 'FAILED' | 'UPDATING' | 'SCALED_TO_ZERO' | 'WAKING_UP' required

The status of a deployment.