---
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"]
---

# 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

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

## Response `200`

A successful response.

- object

---

[API](https://skmtc.net/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api.md) · [All operations](https://skmtc.net/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fireworks/fireworks-ai-anthropic-compatible-messages-api/revisions/954d6bc5d922/schema)
