---
title: "Update Quota"
method: PATCH
path: "/v1/accounts/{account_id}/quotas/{quota_id}"
tags: ["Gateway"]
---

# Update Quota

`PATCH /v1/accounts/{account_id}/quotas/{quota_id}`

## Request

- Base URL: `https://api.fireworks.ai/inference`
- URL: `https://api.fireworks.ai/inference/v1/accounts/{account_id}/quotas/{quota_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/docs/v1/accounts/:account_id/quotas/:quota_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates a quota.

## Path parameters

- `account_id` string, required
- `quota_id` string, required

## Query parameters

- `allowMissing` boolean

## Request body

- object
  - `value` string, int64: The value of the quota being enforced. This may be lower than the max_value if the user manually lowers it.
  - `maxValue` string, int64: The maximum approved value.
  - `usage` number, double: The usage of the quota.
  - `updateTime` string, date-time: The update time for the quota.

## Response `200`

A successful response.

- GatewayQuota
  - `name` string
  - `value` string, int64: The value of the quota being enforced. This may be lower than the max_value if the user manually lowers it.
  - `maxValue` string, int64: The maximum approved value.
  - `usage` number, double: The usage of the quota.
  - `updateTime` string, date-time: The update time for the quota.

---

[API](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api.md) - [All operations](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/revisions/954d6bc5d922?raw)
