Skip to main content
PUT
Update llm gateway budget

Authorizations

Authorization
string
header
required

Enter a Forge service-account token or delegated OAuth access token. Mintlify adds the Bearer prefix.

Headers

X-Forge-Reason
string
required
Minimum string length: 1
Idempotency-Key
string
required
Minimum string length: 1
X-Forge-Confirm
enum<boolean>
required
Available options:
true

Path Parameters

organizationId
string
required
budgetId
string
required

Body

application/json

Independent optional limit. All matching budgets apply cumulatively across providers and keys. Access assignments do not create budgets.

updatedAt
string<date-time>
required

Last read version; stale writes return 409.

accessProfileId
string

Optional profile filter; omission applies across access profiles.

tokenId
string
subjectKind
enum<string>
Available options:
user,
group,
app,
agent,
service_account,
customer_tenant
subjectId
string
budgetWindow
enum<string>
Available options:
daily,
weekly,
monthly,
rolling_24h,
rolling_7d,
rolling_30d
amountUsd
number<double>
Required range: 0.000001 <= x < 1000000000000
inputTokenLimit
integer<int64>
Required range: x >= 1
outputTokenLimit
integer<int64>
Required range: x >= 1
totalTokenLimit
integer<int64>
Required range: x >= 1
action
enum<string>
Available options:
block
metadata
object

Accepted budget settings. Unknown keys are rejected. Server-owned fields may be returned unchanged on update; use allowanceUsd to change allowances.

state
enum<string>

Omission preserves the existing state.

Available options:
active,
disabled
allowanceUsd
number<double>

Add this USD amount to the current UTC calendar-period allowance; zero removes the entire selected allowance. Requires an active USD cap and does not reset usage or bypass other budgets. Ordinary budget fields are ignored for this action. A 202 response means runtime propagation is pending.

Required range: x >= 0
allowanceUserId
string

Optional member user ID; omission targets the group or user total.

allowanceWindowStart
string<date-time>

Optional expected UTC period start for a grant. A changed period returns 409 without granting allowance. Omission grants in the current period at processing time. Ignored when allowanceUsd is zero.

Response

Gateway budget response.

budget
object
required