curl --request PATCH \
--url https://api.baseten.co/v1/chains/{chain_id}/environments/{env_name}/chainlet_settings/autoscaling_settings \
--header "Authorization: Api-Key $BASETEN_API_KEY" \
--data '{
  "updates": [
    {
      "autoscaling_settings": {
        "autoscaling_window": 800,
        "concurrency_target": 4,
        "max_replica": 3,
        "min_replica": 2,
        "scale_down_delay": 63
      },
      "chainlet_name": "HelloWorld"
    }
  ]
}'
{
  "status": "ACCEPTED",
  "message": "<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

chain_id
string
required
env_name
string
required

Body

application/json

A request to update the autoscaling settings for a multiple chainlets in an environment. If a chainlet name doesn't exist, an error is returned.

updates
object[]
required

Mapping of chainlet name to the desired chainlet autoscaling settings. If the chainlet name doesn't exist, an error is returned.

The request to update the autoscaling settings for a chainlet.

Example:
[
  {
    "autoscaling_settings": {
      "autoscaling_window": 800,
      "concurrency_target": 4,
      "max_replica": 3,
      "min_replica": 2,
      "scale_down_delay": 63
    },
    "chainlet_name": "HelloWorld"
  }
]

Response

200 - application/json

The response to a request to update autoscaling settings.

status
enum<string>
required

Status of the request to update autoscaling settings

Available options:
ACCEPTED,
QUEUED,
UNCHANGED
message
string
required

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