Skip to content

Scale services up or down

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).

slug
required
string

App slug (lowercase, dash-separated).

object
scales
required
object
key
additional properties
integer
>= 1
Example
{
"web": 3,
"worker": 2
}

Scale applied.

Invalid request.

string