Organizations and Projects
Update budget amount
Changed onChanges the budget's amount. The scope and interval cannot change.
patch/orgs/{orgID}/budgets/{budgetID}
Request
- Base URLhttps://api.omnara.com/v1
- Auth
- HTTP bearer
- or API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf
Path parameters
orgID, string required
budgetID, string required
Request body
Update Budget Request required
amount_usd, string required
Amount in USD as a positive decimal string.
Response
Budget updated.
Budget required
id, string required
org_id, string required
scope, union required
interval, 'day' | 'week' | 'month' | 'lifetime' required
How often spend resets, in UTC: day at midnight, week on Monday, month on the 1st. lifetime never resets and counts spend recorded since budgets became available.
amount_usd, string required
Amount in USD as a positive decimal string.
usage, Budget Usage
Spend in the current interval. Populated when the budget is returned by the list or get endpoint.
created_at, string date-time required
updated_at, string date-time required
Changes
- info
endpoint added
- info