---
title: "Amend Goal"
method: PATCH
path: "/api/metrics/goals/{goal_id}"
tags: ["metrics"]
---

# Amend Goal

`PATCH /api/metrics/goals/{goal_id}`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/metrics/goals/{goal_id}`
- Auth: none declared

Change a goal, snapshotting what it said first.

Frederick, 2026-09-09: "I need to be able to update and change goals. The
goals can't be set forever." Until this route existed the goal surface was
propose / agree and nothing else -- no way to move a target, a
deadline, or a word.

A change to the SUBSTANCE takes the agreement back (`goals.
SUBSTANTIVE_FIELDS`); re-wording the narrative does not. The response says
which happened, because "your edit landed" and "your edit landed and this
goal now needs signing off again" are different things to be told.

## Path parameters

- `goal_id` string, uuid, required

## Request body

- GoalAmendment: A change to a goal, and why. ⛔EVERY FIELD IS OPTIONAL AND `None` IS AMBIGUOUS, so the route reads `model_dump(exclude_unset=True)` rather than the model's attributes: "clear the deadline" (`deadline: null`, sent) and "do not touch the deadline" (not sent) are different instructions that both arrive as `None` on the object. Reading the attribute would make one of them impossible, and it would be the clearing one -- a deadline nobody could ever remove.
  - `reason` string, required
  - `target` string, nullable
  - `deadline` string, date, nullable
  - `narrative` string, nullable
  - `rationale` string, nullable
  - `goal_kind` string, nullable
  - `window_days` integer, nullable
  - `staleness_days` integer, nullable
  - `horizon_days` integer, nullable
  - `priority_rank` integer, nullable
  - `owner_principal_id` string, uuid, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
