---
title: "Put Budgets"
method: PUT
path: "/api/v1/cost/budgets"
---

# Put Budgets

`PUT /api/v1/cost/budgets`

## Request

- Base URL: `https://api.stacktrace.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stacktrace.ai/api/v1/cost/budgets`
- Auth: none declared

Replace the org's budgets whole: a form saves what it shows. A budget
set per key owner before people were known is not shown, so a save
drops it (ADR-0080).

## Headers

- `authorization` string, nullable

## Request body

- CostBudgetsRequest: The org's whole set of budgets, replacing what was there.
  - `budgets` CostBudgetItem[]
    - `person` string, nullable
    - `person_name` string, nullable
    - `window` 'hour' | 'day', required
    - `limit_usd` number, required

## Response `200`

Successful Response

- CostBudgetsResponse
  - `budgets` CostBudgetItem[], required
    - `person` string, nullable
    - `person_name` string, nullable
    - `window` 'hour' | 'day', required
    - `limit_usd` number, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api.md) - [All operations](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api/revisions/0ee5484d1d0b?raw)
