Scale services up or down
POST /apps/{slug}/scale
POST
/apps/{slug}/scale
Set replica counts for one or more services. Returns 400 if any named service is non-scalable (stateful image, host port binding, named volume, deploy.mode=global, or simpledeploy.scalable=false label).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” slug
required
string
App slug (lowercase, dash-separated).
Request Body required
Section titled “Request Body required ”object
scales
required
object
key
additional properties
integer
Example
{ "web": 3, "worker": 2}Responses
Section titled “ Responses ”Scale applied.
Invalid request.
string