Skip to main content
PATCH
/
v1
/
accounts
/
{account_id}
/
quotas
/
{quota_id}
Update Quota
curl --request PATCH \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/quotas/{quota_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": "<string>",
  "maxValue": "<string>"
}
'
{
  "name": "<string>",
  "value": "<string>",
  "maxValue": "<string>",
  "usage": 123,
  "updateTime": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>

Path Parameters

account_id
string
required

The Account Id

quota_id
string
required

The Quota Id

Query Parameters

allowMissing
boolean

If true, and the quota does not exist, it will be created.

Body

application/json

The properties of the quota being updated. quota.name must be populated with the updated resource's name.

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.

Response

200 - application/json

A successful response.

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.