---
title: "Turn an app on or off"
method: POST
path: "/v1/projects/{project_id}/actions/scale"
tags: ["Configuration"]
---

# Turn an app on or off

`POST /v1/projects/{project_id}/actions/scale`

## Request

- Base URL: `https://api.liara.ir`
- URL: `https://api.liara.ir/v1/projects/{project_id}/actions/scale`
- Auth: HTTP bearer

Turns the app off (`scale: 0`) or on (`scale: 1`). Team permission: `manage`.

## Path parameters

- `project_id` string, required

## Query parameters

- `teamID` string: 24-character hexadecimal ID.

## Request body

- object
  - `scale` 0 | 1, required

## Response `200`

Done. The response body is empty.

## Other responses

- `400`: The body or a parameter is invalid (`message` says which), or `teamID` isn't a valid ID.
- `401`: The API token is missing, invalid or expired.
- `403`: The app is on a free plan (`PLAN_UPGRADE_REQUIRED`), or, with `teamID`, you aren't a member (`team_not_found`) or lack the permission (`no_permission`).
- `404`: The app doesn't exist, or is frozen or suspended.

---

[API](https://skmtc.dev/liara-cloud/apis/paas.md) - [All operations](https://skmtc.dev/liara-cloud/apis/paas/llms.txt) - [OpenAPI document](https://skmtc.dev/liara-cloud/apis/paas/revisions/610162e8a623?raw)
