---
title: "Scale Deployment to a specific number of replicas or to zero"
method: PATCH
path: "/v1/accounts/{account_id}/deployments/{deployment_id}:scale"
tags: ["gateway.openapi_Gateway"]
---

# Scale Deployment to a specific number of replicas or to zero

`PATCH /v1/accounts/{account_id}/deployments/{deployment_id}:scale`

## Path parameters

- `account_id` string, required
- `deployment_id` string, required

## Request body

- GatewayScaleDeploymentBody
  - `replicaCount` integer — The desired number of replicas.

## Response `200`

A successful response.

- object

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/versions/29a1e4db152c/schema)
