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

# Update a goal

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

## Request

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

## Path parameters

- `id` string, required

## Request body

- UpdateSavingsGoalDto
  - `name` string: Goal name
  - `description` string: Goal description
  - `targetAmount` number: Target amount
  - `currency` string: Currency for this goal (only contributions in this currency count)
  - `currentAmount` number: Current amount saved (defaults to 0)
  - `deadline` string: Deadline (YYYY-MM-DD)
  - `color` string: Color hex code
  - `icon` string: Icon name (Lucide icon)
  - `isActive` boolean: Whether the goal is active

## Response `200`

Goal updated

## Other responses

- `404`: Goal 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)
