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

# Update Scoped Budget

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

Relabel a ceiling, or point it at a different budget.

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.

There is no limit or period to set here any more. Both are properties of the
budget, so changing what a ceiling allows is either editing that budget,
which moves every ceiling naming it, or naming a different one.

## Path parameters

- `budget_id` string, required

## Request body

- UpdateScopedBudgetRequest — Request model for updating a scoped budget.
  - `budget_id` string, 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. ``max_budget``, ``budget_duration_sec`` and ``reset_alignment`` are read off the budget rather than stored here, and are carried on the wire so a caller can render a ceiling without fetching every budget to resolve one id.
  - `budget_duration_sec` integer, nullable, required
  - `budget_id` string, 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
  - `reset_alignment` string, nullable, 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/2d6e4912e230/schema)
