Pular para o conteúdo principal
PATCH
Update a budget
Guia relacionado: Guia de orçamentos. Consulte o Guia de orçamentos para ver um passo a passo com exemplos.

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parâmetros de caminho

budget_id
string
obrigatório

Budget id to update.

Corpo

application/json
limits
object

New limits. Omit to keep current.

rate_limit
object

New rate limit. Omit to keep current.

is_active
boolean

New active state. Omit to keep current.

expires_at
string<date-time>

New expiration. Omit to keep current. Set clear_expires_at = true to remove an existing expiration.

clear_expires_at
boolean

Force-clear the expiration. Mutually exclusive with expires_at.

match
object

New matching expression. Only valid for dynamic budgets (no structured scope) — the scope of a scoped budget is immutable, so its derived expression is too. Validated via CEL parse.

alerts
object[]

Replaces the alert list wholesale. Omit to keep the current alerts. An entry with a known id is edited in place; one with no id is minted.

clear_alerts
boolean

Force-clear every alert. Mutually exclusive with a non-empty alerts.

Resposta

OK

budget
object
obrigatório

Updated budget.