---
title: "Link Goal Issues"
method: POST
path: "/sites/{site_id}/goals/{goal_id}/issues"
tags: ["sites"]
---

# Link Goal Issues

`POST /sites/{site_id}/goals/{goal_id}/issues`

## 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}/issues`
- Auth: API key in header `X-Agent-Key`

Roll fix-queue items up to this goal, by id or by rule_key/category.

## Path parameters

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

## Query parameters

- `email` string, nullable

## Request body

- GoalLinkIssuesRequest: Attach fix-queue items to a goal, by id or by matching rule.
  - `issue_ids` string[], nullable
  - `rule_keys` string[], nullable
  - `category` string, nullable
  - `reassign` boolean
  - `unlink` boolean
  - `dry_run` boolean

## 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)
