Skip to main content
POST
/
v1
/
projects
/
{name}
/
actions
/
scale
Turn on or off a app
curl --request POST \
  --url https://api.iran.liara.ir/v1/projects/{name}/actions/scale \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "scale": 123
}'
This response has no body data.

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Path Parameters

name
string
required

The name of the app to turn on or off

Body

application/json

Return 1 to turn on or 0 to turn off

scale
number
required

Response