---
title: "Update budget amount"
method: PATCH
path: "/orgs/{orgID}/budgets/{budgetID}"
tags: ["Organizations and Projects"]
---

# Update budget amount

`PATCH /orgs/{orgID}/budgets/{budgetID}`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/budgets/{budgetID}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session` and API key in header `X-Omnara-Csrf`

Changes the budget's amount. The scope and interval cannot change.

## Path parameters

- `orgID` string, required
- `budgetID` string, required

## Request body

- UpdateBudgetRequest
  - `amount_usd` string, required: Amount in USD as a positive decimal string.

## Response `200`

Budget updated.

- Budget
  - `id` string, required
  - `org_id` string, required
  - `scope` union, required
    - OrgBudgetScope
      - `type` 'org', required
    - ProjectBudgetScope
      - `type` 'project', required
      - `project_id` string, required: Project ID (proj_...).
    - AgentProfileBudgetScope: Counts the profile's top-level agents and their subagents.
      - `type` 'profile', required
      - `project_id` string, required: Project ID (proj_...).
      - `agent_profile_id` string, required
    - AgentBudgetScope: Counts a top-level agent and its subagents.
      - `type` 'agent', required
      - `project_id` string, required: Project ID (proj_...).
      - `agent_id` string, 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` BudgetUsage: Spend in the current interval. Populated when the budget is returned by the list or get endpoint.
    - `amount_usd` string, required: Model spend in USD in the current interval. Each call counts the model's own pricing when set, otherwise the provider-reported cost, otherwise a list-price estimate. Calls that could not be priced contribute nothing.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-11-24** `69f93619121b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/budgets/:budgetID/patch.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
