Set Automatic or Custom App capacity and change idle retention. A change that needs review returns what it does. Call again with yes: true once the person agrees.
Arguments
| Argument |
Type |
Description |
id |
string |
Capacity id. Required. |
data |
object |
Only the fields to change, as in capacity.yml from capacity:init. Required. |
data.reservation_mode |
string |
automatic or custom. on_demand remains accepted. |
data.extra_deploy_capacity_percent |
integer |
Extra capacity for deploys in Automatic. At 0%, deploys may wait for Servers. |
data.reserved |
object |
Room to keep, for custom. |
data.ceiling |
object |
Most room to allocate. |
data.idle_retention_seconds |
integer |
Keep excess Capacity this long after demand drops. |
yes |
boolean |
true to apply a change that needs review, once the person agrees. |
Example
{"id":"capacity-100","data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}