Skip to content

Set Cost Budget

PUT
/cost/budget

Set or replace the tenant’s monthly cloud spend target. One per tenant, so this is an upsert rather than a create, and tenant-wide, so an account-restricted operator gets the named 403: the target is the number every other viewer’s pace reading is measured against.

st_session
Any of:
string
BudgetRequest
object
alert_threshold_percent
Alert Threshold Percent
integer
default: 80 >= 1 <= 200
monthly_amount
required
Any of:
number
> 0 <= 100000000
tenant_id
required
Tenant Id
string format: uuid

Successful Response

BudgetRecord
object
alert_threshold_percent
required
Alert Threshold Percent
integer
currency
required
Currency
string
monthly_amount
required
Monthly Amount
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
tenant_id
required
Tenant Id
string format: uuid
updated_at
required
Updated At
string format: date-time
updated_by
required
Updated By
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string