Set threshold config
Replace the tenant-wide alert-threshold config in full. There is no patch/tri-state semantics — the request body is the whole config after this call.
Authorizations
Server API Key
Headers
Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.
Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).
Body
Full replacement of the tenant-wide threshold config — always set in full, no patch semantics.
Percentages of usageLimit that trigger a threshold-crossed alert (e.g. [50, 80, 100]). Applies to every assignment in the tenant.
10Percentages of usageLimit that trigger a threshold-crossed alert (e.g. [50, 80, 100]). Applies to every assignment in the tenant.
x >= 1Response
The threshold config after upsert.
Response object
A single tenant-wide alert curve for usage-threshold-crossed alerts, shared by every assignment regardless of capability — not configured per-budget.
Related topics
Credits webhooksCredits auto-recharge configurationAutomatic recharge spend limit threshold reachedResource-specific credit poolsEnable self-serve top-ups