Promote to model environment
Promotes an existing deployment to an environment and returns the promoted deployment.
Authorizations
Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.
Body
A request to promote a deployment to a environment.
The id of the deployment to promote
Whether to scale down the previous deployment after promoting
true
Whether to use the promoting deployment's instance type or preserve target environment's instance type
true
Response
A deployment of a model.
Unique identifier of the deployment
Time the deployment was created in ISO 8601 format
Name of the deployment
Unique identifier of the model
Whether the deployment is the production deployment of the model
Whether the deployment is the development deployment of the model
Status of the deployment
BUILDING, DEPLOYING, DEPLOY_FAILED, LOADING_MODEL, ACTIVE, UNHEALTHY, BUILD_FAILED, BUILD_STOPPED, DEACTIVATING, INACTIVE, FAILED, UPDATING, SCALED_TO_ZERO, WAKING_UP Number of active replicas
Autoscaling settings for the deployment. If null, the model has not finished deploying
Name of the instance type the model deployment is running on
The environment associated with the deployment
User-provided key-value labels for the deployment