curl --request PATCH \
--url https://api.baseten.co/v1/chains/{chain_id}/environments/{env_name} \
--header "Authorization: Api-Key $BASETEN_API_KEY" \
--data '{
  "promotion_settings": {
    "ramp_up_duration_seconds": 600,
    "ramp_up_while_promoting": true,
    "redeploy_on_promotion": false
  }
}'
{
  "ok": true
}

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

chain_id
string
required
env_name
string
required

Body

application/json

A request to update a chain environment.

promotion_settings
object | null

Promotion settings for the environment

Example:
{
  "ramp_up_duration_seconds": 600,
  "ramp_up_while_promoting": true,
  "redeploy_on_promotion": false
}

Response

200 - application/json

A response to update a chain environment.

ok
boolean
required

Whether the update was successful