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

# Update Scoped Budget

`PATCH /v1/scoped-budgets/{budget_id}`

Update a scoped budget's label, limit, or period length.

The scope and the provider narrowing are not editable: changing either would
move the ceiling to a different identity while carrying its spend, which is
a delete and a create, not an update.

## Path parameters

- `budget_id` string, required

## Request body

- UpdateScopedBudgetRequest — Request model for updating a scoped budget.
  - `budget_duration_sec` integer, nullable
  - `max_budget` number, nullable
  - `name` string, nullable

## Response `200`

Successful Response

- ScopedBudgetResponse — One scoped ceiling and its live counters. Unlike ``/v1/budgets``, the counters are the row's own: a scoped ceiling is enforced against ``current_spend + reserved_spend``, so there is no rollup over users to compute.
  - `budget_duration_sec` integer, nullable, required
  - `created_at` string, required
  - `current_spend` number, required
  - `id` string, required
  - `max_budget` number, nullable, required
  - `name` string, nullable, required
  - `period_end` string, nullable, required
  - `period_start` string, nullable, required
  - `provider_key_id` string, nullable, required
  - `reserved_spend` number, required
  - `scope_id` string, required
  - `scope_type` string, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

---

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