Skip to main content
PATCH
Update Budget thresholds or state

Authorizations

Authorization
string
header
required

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

Headers

checkfu-version
enum<string>
required
Available options:
2026-08-24
idempotency-key
string
Maximum string length: 255

Path Parameters

id
string
required
Pattern: ^bgt_[0-9a-f]{32}$

Body

application/json
expected_version
integer
required
Required range: x > 0
soft_threshold
object | null
hard_threshold
object
state
enum<string>
Available options:
active,
paused

Response

a session_lifetime window only on a session-scoped Budget

id
string
required
Pattern: ^bgt_[0-9a-f]{32}$
workspace_id
string
required
Pattern: ^wrkspc_[0-9a-f]{32}$
scope
object
required
metric
enum<string>
required
Available options:
model_tokens,
model_spend,
session_runtime_ms,
total_spend
window
object
required
soft_threshold
object | null
required
hard_threshold
object
required
state
enum<string>
required
Available options:
active,
paused
version
integer
required
Required range: x > 0
created_at
string
required
updated_at
string
required