---
title: "Update a budget"
method: PUT
path: "/personal-finance/budgets/{id}"
tags: ["personal finance"]
---

# Update a budget

`PUT /personal-finance/budgets/{id}`

## Request

- Base URL: `http://localhost:3001`
- URL: `http://localhost:3001/personal-finance/budgets/{id}`
- Auth: `bearer` (a scheme the document does not define)

## Path parameters

- `id` string, required

## Request body

- UpdateBudgetDto
  - `categoryId` string: Category ID (null for overall budget)
  - `amount` number: Budget amount
  - `currency` string: Currency for this budget (only transactions in this currency count)
  - `alertThreshold` number: Alert threshold percentage (1-100)
  - `period` 'monthly' | 'weekly' | 'yearly': Budget period
  - `startDate` string: Start date (YYYY-MM-DD)
  - `endDate` string: End date (YYYY-MM-DD) - optional
  - `isActive` boolean: Whether the budget is active

## Response `200`

Budget updated

## Other responses

- `404`: Budget not found

---

[API](https://skmtc.dev/spliteo/apis/spliteo-api.md) · [All operations](https://skmtc.dev/spliteo/apis/spliteo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spliteo/apis/spliteo-api/revisions/bd9b84f4e407?raw)
