Update a token budget
Authorizations
JWT obtained through Barndoor's authentication flow. Pass the token
verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's
loginInteractive() helper to obtain a token in scripts and notebooks.
Path Parameters
Body
All fields optional; sent fields replace the existing value.
daily, weekly, monthly, quarterly, yearly block— refuse new requests until the next periodalert— emit alerts at the configured thresholds but keep serving
block, alert Whether the policy applies to LLM, MCP, or both kinds of traffic
all, llm, mcp Response
The updated budget
"Engineering monthly tokens"
Who the rate limit applies to
org, team, user, role, group, api_key, mcp_server, agent, project, llm_provider, model, model_alias daily, weekly, monthly, quarterly, yearly 50000000
0 <= x <= 100[80, 90]
block— refuse new requests until the next periodalert— emit alerts at the configured thresholds but keep serving
block, alert Whether the policy applies to LLM, MCP, or both kinds of traffic
all, llm, mcp Optional spend ceiling in currency
Restrict to traffic served by a specific provider
Restrict to traffic that ends up at this upstream model
Restrict to requests that used this client-facing alias
