Create or replace the org's monthly budget
PUT
/api/v1/organizations/{orgID}/billing/budget
const url = 'https://api.aetherplatform.cloud/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/billing/budget';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"monthly_limit_eur":1,"thresholds_pct":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.aetherplatform.cloud/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/billing/budget \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "monthly_limit_eur": 1, "thresholds_pct": [ 1 ] }'Upserts the org’s soft monthly budget. thresholds_pct must be non-empty, strictly ascending, and each value in 0 < pct <= 100; monthly_limit_eur must be > 0. Validation failures return 422.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”orgID
required
string format: uuid
Organization UUID.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
monthly_limit_eur
required
Must be > 0.
number format: double
thresholds_pct
required
Non-empty, strictly ascending, each 0 < pct <= 100.
Array<integer>
Examplegenerated
{ "monthly_limit_eur": 1, "thresholds_pct": [ 1 ]}Responses
Section titled “Responses”The saved budget.
Media typeapplication/json
object
org_id
required
string format: uuid
monthly_limit_eur
required
The soft monthly spend limit in euros (> 0).
number format: double
thresholds_pct
required
Ascending percentages (each 0 < pct <= 100) of the limit at which a one-time usage.alert fires for the month.
Array<integer>
created_at
required
string format: date-time
updated_at
required
string format: date-time
Examplegenerated
{ "org_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "monthly_limit_eur": 1, "thresholds_pct": [ 1 ], "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z"}Missing or invalid credentials.
Media typeapplication/json
object
error
required
object
code
required
A stable, machine-readable error code.
string
message
required
string
details
Array<object>
object
field
required
string
code
required
string
message
required
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "code": "example", "message": "example" } ] }}Request validation failed.
Media typeapplication/json
object
error
required
object
code
required
A stable, machine-readable error code.
string
message
required
string
details
Array<object>
object
field
required
string
code
required
string
message
required
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "code": "example", "message": "example" } ] }}