v1

latestOpenAPI 3.1.02026-07-26157321426.3 KB

Updates an environment's settings

Asynchronously updates an environment's settings. Poll the GET endpoint for the applied state.

patch/v1/models/{model_id}/environments/{env_name}

Request body

Example request

{
  "autoscaling_settings": {
    "max_replica": 7,
    "autoscaling_window": 600,
    "scale_down_delay": 120,
    "concurrency_target": 2,
    "target_utilization_percentage": 70,
    "target_in_flight_tokens": 40000,
    "max_scale_down_rate": 20
  },
  "promotion_settings": {
    "redeploy_on_promotion": true,
    "rolling_deploy": true,
    "rolling_deploy_config": {
      "max_surge_percent": 25,
      "max_unavailable_percent": 10,
      "stabilization_time_seconds": 300
    },
    "ramp_up_while_promoting": true,
    "ramp_up_duration_seconds": 600
  }
}

Response

status'ACCEPTED' | 'QUEUED' | 'UNCHANGED' required

The status of a request to update autoscaling settings.

messagestring required

A message describing the status of the request to update autoscaling settings