admin

Set the capacity of a rig

Changed on

Set the desired instance count on the rig's scaling group. The value is passed to the cloud provider unchanged; violations of the group's bounds or conflicting concurrent operations surface as errors.

put/clusters/{clusterID}/rigs/{rigID}/capacity

Request

  • Base URL
    https://api.e2b.app
  • URL
    https://api.e2b.app/clusters/{clusterID}/rigs/{rigID}/capacity
  • Auth
    • API key in header X-Admin-Token
    • or HTTP bearer

Path parameters

clusterIDstring uuid required

Identifier of the cluster

rigIDstring required

Rig identifier (e.g. "default")

Request body

desiredinteger required

Absolute desired number of instances in the rig

Response

Capacity change accepted

Changes