curl --request POST \
--url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/promote \
--header "Authorization: Api-Key $BASETEN_API_KEY" \
--data '{
  "scale_down_previous_deployment": true,
  "deployment_id": null,
  "preserve_env_instance_type": true
}'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "model_id": "<string>",
  "is_production": true,
  "is_development": true,
  "status": "BUILDING",
  "active_replica_count": 123,
  "autoscaling_settings": {
    "min_replica": 123,
    "max_replica": 123,
    "autoscaling_window": 123,
    "scale_down_delay": 123,
    "concurrency_target": 123
  },
  "environment": "<string>"
}

Authorizations

Authorization
string
header
required

You must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>

Path Parameters

model_id
string
required
env_name
string
required

Body

application/json

A request to promote a deployment to a environment.

Response

200 - application/json

A deployment of a model.