---
title: "Update Budget"
method: PATCH
path: "/v1/budgets/{budget_id}"
tags: ["budgets"]
---

# Update Budget

`PATCH /v1/budgets/{budget_id}`

Update a budget.

## Path parameters

- `budget_id` string, required

## Request body

- UpdateBudgetRequest — Request model for updating a budget.
  - `budget_duration_sec` integer, nullable
  - `max_budget` number, nullable

## Response `200`

Successful Response

- BudgetResponse — Response model for budget information.
  - `budget_duration_sec` integer, nullable, required
  - `budget_id` string, required
  - `created_at` string, required
  - `max_budget` number, nullable, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-17** `0f43605bdc13` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API

[Change history](https://skmtc.dev/mozilla-ai/apis/otari/changes/v1/budgets/:budget_id/patch.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/bb754bbf3e78/schema)
