---
title: "Update Goal"
method: PUT
path: "/api/partners/goals/{goal_id}"
tags: ["Partners"]
---

# Update Goal

`PUT /api/partners/goals/{goal_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/partners/goals/{goal_id}`
- Auth: HTTP bearer

Update a joint goal. Use contribute_amount to add to current_amount.

## Path parameters

- `goal_id` string, uuid, required

## Request body

- AppApiPartnersGoalUpdate
  - `name` string, nullable
  - `target_amount` union
    - number
    - string
  - `monthly_contribution` union
    - number
    - string
  - `contribute_amount` union
    - number
    - string
  - `icon` string, nullable

## Response `200`

Successful Response

- AppApiPartnersGoalResponse
  - `id` string, required
  - `name` string, required
  - `target_amount` number, required
  - `current_amount` number, required
  - `user1_contributed` number, required
  - `user2_contributed` number, required
  - `monthly_contribution` number, required
  - `icon` string, nullable, required
  - `progress_pct` number, required
  - `created_at` string, required

## Other responses

- `422`: Validation Error

---

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