v1

latestOpenAPI 3.0.02026-07-2412592575.3 KB
savings goals

Update a single savings goal

Requires savings_goals:read and either savings_goals:write or savings_goals:write:all scope.

patch/savings-goals/{goalId}

Path parameters

goalIdstring uuid required

The Goal Id

Request body

namestring

Name for the savings goal.

imageUrlstring
notesstring

Arbitrary text that a user can add about a savings goal.

targetDatestring date

The target date for the savings goal. Format YYYY-MM-DD. It must be today or in the future.

Example request

{
  "name": "New name",
  "amount": {
    "value": 1800000
  },
  "imageUrl": "New Image url",
  "notes": "New Notes",
  "targetDate": "2026-12-24",
  "accounts": [
    {
      "id": "ac9bd177-d01e-449c-9f29-d3656d2edc2e"
    }
  ]
}

Response

Successful Response

metaobject

Example response

{
  "data": {
    "id": "9bef2cc3-e62f-4dfb-9a51-e3085bfbf5c4",
    "name": "Savings goal",
    "amount": {
      "value": 1000000,
      "majorUnits": 10000,
      "minorUnits": 0,
      "currency": "GBP"
    },
    "progressPercentage": 30,
    "progressAmount": {
      "value": 300000,
      "majorUnits": 3000,
      "minorUnits": 0,
      "currency": "GBP"
    },
    "imageUrl": "",
    "dateCreated": "2021-12-21T15:27:02+00:00",
    "targetDate": "2026-12-24",
    "accounts": [
      {
        "id": "a4f88d50-665c-461e-a54b-fb8da07d3b56"
      },
      {
        "id": "80a7f96b-ba20-43cd-82d0-e06a35f68051"
      }
    ]
  }
}