Skip to main content
PATCH
/
v1
/
chains
/
{chain_id}
/
environments
/
{env_name}
cURL
curl --request PATCH \
--url https://api.baseten.co/v1/chains/{chain_id}/environments/{env_name} \
--header "Authorization: Bearer $BASETEN_API_KEY" \
--data '{
  "promotion_settings": {
    "promotion_cleanup_strategy": null,
    "ramp_up_duration_seconds": 600,
    "ramp_up_while_promoting": true,
    "redeploy_on_promotion": null,
    "rolling_deploy": null,
    "rolling_deploy_config": null
  }
}'
{
  "ok": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.baseten.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.

Path Parameters

chain_id
string
required
env_name
string
required

Body

application/json

A request to update a chain environment.

promotion_settings
UpdatePromotionSettingsV1 · object

Promotion settings for the environment

Example:
{
"promotion_cleanup_strategy": null,
"ramp_up_duration_seconds": 600,
"ramp_up_while_promoting": true,
"redeploy_on_promotion": null,
"rolling_deploy": null,
"rolling_deploy_config": null
}

Response

200 - application/json

A response to update a chain environment.

ok
boolean
required

Whether the update was successful