---
title: "Update Goal"
method: PATCH
path: "/api/domains/{domain_id}/goals/{goal_id}"
tags: ["goals"]
---

# Update Goal

`PATCH /api/domains/{domain_id}/goals/{goal_id}`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/api/domains/{domain_id}/goals/{goal_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

Update a goal's description, rubric, or status.

## Path parameters

- `goal_id` string, required
- `domain_id` string, required

## Headers

- `x-view-as` string, nullable

## Request body

- GoalUpdate
  - `title` string, nullable
  - `description` string, nullable
  - `rubric` object, nullable
  - `status` string, nullable

## Response `200`

Successful Response

- GoalOut
  - `id` string, required
  - `title` string, nullable
  - `source_text` string, required
  - `source_page` string, required
  - `description` string, required
  - `rubric` object, nullable
  - `status` string, required
  - `subject_type` string
  - `subject_id` string, nullable
  - `parent_goal_id` string, nullable
  - `created_at` string, required
  - `updated_at` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
