Environments
Update chainlet environment's autoscaling settings
Updates a chainlet environment’s autoscaling settings and returns the updated chainlet environment settings.
PATCH
cURL
Authorizations
Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.
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.
Mapping of chainlet name to the desired chainlet autoscaling settings. If the chainlet name doesn't exist, an error is returned.
Examples:
[
{
"autoscaling_settings": {
"autoscaling_window": 800,
"concurrency_target": 4,
"max_replica": 3,
"max_scale_down_rate": null,
"min_replica": 2,
"scale_down_delay": 63,
"target_in_flight_tokens": null,
"target_utilization_percentage": null
},
"chainlet_name": "HelloWorld"
}
][
{
"autoscaling_settings": {
"autoscaling_window": null,
"concurrency_target": null,
"max_replica": null,
"max_scale_down_rate": null,
"min_replica": 0,
"scale_down_delay": null,
"target_in_flight_tokens": null,
"target_utilization_percentage": null
},
"chainlet_name": "HelloWorld"
},
{
"autoscaling_settings": {
"autoscaling_window": null,
"concurrency_target": null,
"max_replica": null,
"max_scale_down_rate": null,
"min_replica": 0,
"scale_down_delay": null,
"target_in_flight_tokens": null,
"target_utilization_percentage": null
},
"chainlet_name": "RandInt"
}
]Response
200 - application/json
Previous
Update chainlet environment's instance typeUpdates a chainlet environment's instance type settings. The chainlet environment setting must exist. When updated, a new chain deployment is created and deployed. It is promoted to the chain environment according to promotion settings on the environment.
Next
cURL