---
title: "Update an existing goal"
method: PUT
path: "/api/v2/account/{accountUid}/savings-goals/{savingsGoalUid}"
tags: ["Savings Goals"]
---

# Update an existing goal

`PUT /api/v2/account/{accountUid}/savings-goals/{savingsGoalUid}`

## Request

- Base URL: `https://api.starlingbank.com`
- URL: `https://api.starlingbank.com/api/v2/account/{accountUid}/savings-goals/{savingsGoalUid}`
- Auth: HTTP bearer

## Path parameters

- `accountUid` string, uuid, required
- `savingsGoalUid` string, uuid, required

## Request body

- SavingsGoalRequestV2: Request to create a new savings goal
  - `name` string, required: Name of the savings goal
  - `currency` string, required: ISO-4217 3 character currency code of the savings goal
  - `target` CurrencyAndAmount: Representation of money
    - `currency` string, required: ISO-4217 3 character currency code
    - `minorUnits` integer, required: Amount in the minor units of the given currency; eg pence in GBP, cents in EUR
  - `base64EncodedPhoto` string: A text (base 64) encoded picture to associate with the savings goal

## Response `200`

Successful operation

- CreateOrUpdateSavingsGoalResponseV2: Response after attempting to create a savings goal
  - `savingsGoalUid` string, uuid: Unique identifier of the savings goal
  - `success` boolean: True if the method completed successfully

## Other responses

- `4xx`: Client error. See [API status codes](#api-status-codes-1) for more details.
- `5xx`: Server error. See [API status codes](#api-status-codes-1) for more details.

## Changes

- **2025-06-21** `3965b8836141`: 1 breaking
  - the `target/currency` request property's minLength was increased from `0` to `1`

[Operation history](https://skmtc.dev/starlingbank/apis/starling-bank-api/changes/api/v2/account/:accountUid/savings-goals/:savingsGoalUid/put.md)

---

[API](https://skmtc.dev/starlingbank/apis/starling-bank-api.md) - [All operations](https://skmtc.dev/starlingbank/apis/starling-bank-api/llms.txt) - [OpenAPI document](https://skmtc.dev/starlingbank/apis/starling-bank-api/revisions/7c5075cfbe63?raw)
