---
title: "Update Goal"
method: PATCH
path: "/sites/{site_id}/goals/{goal_id}"
tags: ["sites"]
---

# Update Goal

`PATCH /sites/{site_id}/goals/{goal_id}`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/sites/{site_id}/goals/{goal_id}`
- Auth: API key in header `X-Agent-Key`

Update a goal's fields or status.

## Path parameters

- `site_id` string, required
- `goal_id` string, required

## Query parameters

- `email` string, nullable

## Request body

- GoalUpdateRequest
  - `title` string, nullable
  - `description` string, nullable
  - `category` string, nullable
  - `stage` string, nullable
  - `status` string, nullable
  - `priority` string, nullable
  - `tags` string[], nullable
  - `metric_key` string, nullable
  - `target_value` number, nullable
  - `manual_done` integer, nullable
  - `manual_total` integer, nullable
  - `starts_at` string, date-time, nullable
  - `due_at` string, date-time, nullable
  - `owner_email` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
