Skip to main content
PUT
Create or update a workspace budget

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Path Parameters

id
string
required

The workspace ID (UUID) or slug

Minimum string length: 1
Example:

"production"

interval
enum<string>
required

Budget reset interval. Use "lifetime" for a one-time budget that never resets.

Available options:
daily,
weekly,
monthly,
lifetime
Example:

"monthly"

Body

application/json
limit_usd
number<double>
required

Spending limit in USD. Must be greater than 0.

Example:

100

Response

Budget created or updated successfully

data
object
required

The created or updated budget

Example: