> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentlinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Plan or dismiss an internal-link change

> Plan, dismiss, mark as made or reopen one internal-link change from a finished scan: a link opportunity, finding or action.

`save_internal_link_change`

Plan, dismiss, mark as made or reopen one internal-link change from a finished scan: a link opportunity, finding or action. Records who chose it. Marking it made records your claim. A supported check or later scan can confirm it. Never edits the site.

> [!NOTE]
>
> This command name is absent from deployment evidence dated 2026-10-17. Hosted availability for this current definition is unverified; inspect your connected catalog before invoking it. Verify the command and its input schema in the selected environment.

| Access | Behavior |
| - | - |
| `watches:write`, `watches:read` | Writes or admits work |

This operation changes saved state. Review its inputs and retry behavior before calling.

## Example request

Connect through [MCP](/guides/connect-mcp.md), [CLI](/guides/connect-cli.md), or [HTTP](/guides/connect-http.md). Replace example identifiers with records from your workspace.

```json MCP theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "save_internal_link_change",
    "arguments": {
      "projectId": "prj_example",
      "requestId": "plan-2026-10-21",
      "action": "select",
      "scanId": "ilr_example",
      "subjectId": "add_link_at_mention:https://example.com/guides/:https://example.com/guides/estate-inventory/"
    }
  }
}
```

```bash CLI theme={null}
agentlinkops call save_internal_link_change --args '{"projectId":"prj_example","requestId":"plan-2026-10-21","action":"select","scanId":"ilr_example","subjectId":"add_link_at_mention:https://example.com/guides/:https://example.com/guides/estate-inventory/"}'
```

```bash HTTP theme={null}
curl --fail-with-body https://app.agentlinkops.com/v1/commands/save_internal_link_change \
  -H "Authorization: Bearer $AGENTLINKOPS_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"projectId":"prj_example","requestId":"plan-2026-10-21","action":"select","scanId":"ilr_example","subjectId":"add_link_at_mention:https://example.com/guides/:https://example.com/guides/estate-inventory/"}'
```

## Returned result

Illustrative data validated against the documented response schema. IDs and dates are examples, not a live account capture. MCP returns this data in `structuredContent` and in a text content block; generic HTTP and CLI return the JSON result directly.

> **Full response example**
>
> ```json theme={null}
> {
>   "change": {
>     "id": "ilc_0123456789abcdef01234567",
>     "projectId": "prj_example",
>     "state": "selected",
>     "revision": 1,
>     "subject": {
>       "kind": "suggestion",
>       "id": "add_link_at_mention:https://example.com/guides/:https://example.com/guides/estate-inventory/",
>       "findingKind": null,
>       "sourceUrl": "https://example.com/guides/",
>       "targetUrl": "https://example.com/guides/estate-inventory/",
>       "pageUrl": "https://example.com/guides/",
>       "message": "“estate inventory” on this page already names the topic of /guides/estate-inventory/.",
>       "goal": "link"
>     },
>     "edit": {
>       "anchor": "estate inventory",
>       "passage": "Every executor should start with an estate inventory before paying any debts.",
>       "matchStart": 36,
>       "matchEnd": 52,
>       "phraseSource": "address",
>       "anchorBy": "product",
>       "anchorRef": null
>     },
>     "origin": {
>       "scanId": "ilr_example",
>       "sourceCheckedAt": "2026-10-15T12:01:00.000Z",
>       "sourceCaptureSha256": null
>     },
>     "dismissReason": null,
>     "note": null,
>     "externalRef": null,
>     "selectedBy": {
>       "kind": "member",
>       "id": "user_example"
>     },
>     "updatedBy": {
>       "kind": "member",
>       "id": "user_example"
>     },
>     "verification": null,
>     "verifiedAt": null,
>     "lastCheckedAt": null,
>     "nextCheckAt": null,
>     "createdAt": "2026-10-15T13:00:00.000Z",
>     "updatedAt": "2026-10-15T13:00:00.000Z"
>   }
> }
> ```

## Input fields

Omit optional fields when you do not want to supply them. Null is accepted only where listed. Unknown input properties are rejected.

| Field | Type | Presence | Meaning and constraints |
| - | - | - | - |
| `projectId` | string | Required | project ID from create/list. minLength: `1`; maxLength: `200` |
| `requestId` | string | Required | Caller-generated retry key. Reuse the same key and inputs to retry; use a new key for a new operation. minLength: `1`; maxLength: `128` |
| `action` | string | Required | select plans an edit; dismiss records why not; published records that you made it; reopen undoes a dismissal. values: `"select"`, `"dismiss"`, `"published"`, `"reopen"` |
| `scanId` | string | Optional | select, or dismiss by subject: the scan the subject came from. minLength: `1`; maxLength: `200` |
| `subjectId` | string | Optional | select, or dismiss by subject: an opportunity, finding or action id from query\_internal\_link\_scan. minLength: `1`; maxLength: `9000` |
| `changeId` | string | Optional | dismiss, published or reopen: the saved change. minLength: `1`; maxLength: `200` |
| `revision` | integer | Optional | The change revision you read; a different one conflicts. maximum: `9007199254740991`; exclusiveMinimum: `0` |
| `anchor` | string | Optional | select: link words other than the suggested ones. They must appear in the passage. minLength: `1`; maxLength: `500` |
| `passage` | string | Optional | select: the page text that holds the anchor, when the scan has none. minLength: `1`; maxLength: `2000` |
| `anchorBy` | string | Optional | Who chose the anchor words. Defaults to the caller. values: `"customer"`, `"agent"` |
| `anchorRef` | string | Optional | The agent or client that chose them. minLength: `1`; maxLength: `200` |
| `reason` | string | Optional | dismiss: intended, not\_useful, wrong or other. values: `"intended"`, `"not_useful"`, `"wrong"`, `"other"` |
| `note` | string | Optional | maxLength: `500` |
| `externalRef` | string | Optional | published: your own edit link, commit or ticket. It is never fetched. maxLength: `300` |

### Validation and omitted values

action=select plans one subject of a finished scan: an opportunity, finding or action id from query\_internal\_link\_scan. It is refused when the newest finished scan shows the page already linking to the target, or when a newer finished scan no longer shows the subject.

Anchor words other than the suggested ones must appear in the stored passage, or in passage text you supply. Who chose them is recorded as customer or agent.

action=published records your claim that you made the edit. A supported check or a later comparable scan can confirm it. dismiss records a reason; reopen returns a dismissed or stale change to the plan.

Updates carry the current change revision. Reuse requestId with the same inputs to retry the change's latest operation; an older request or changed inputs can conflict. Nothing edits the website.

## Output fields

Fields inside optional or nullable parents apply only when that parent exists. [Common schema conventions](/reference/schemas.md) explain evidence states, empty lists and extensions.

* **`change`** (object, required): additional fields rejected

> **All fields and nested objects**
>
> | Field | Type | Presence | Meaning and constraints |
> | - | - | - | - |
> | `change` | object | Required | additional fields rejected |
> | `change.id` | string | Required | Resource identifier returned by the operation. |
> | `change.projectId` | string | Required | Identifier returned by the related operation. minLength: `1`; maxLength: `200` |
> | `change.state` | string | Required | Saved lifecycle or evidence state, as enumerated for this record. values: `"selected"`, `"published"`, `"verified"`, `"not_found"`, `"dismissed"`, `"resolved"`, `"stale"` |
> | `change.revision` | integer | Required | Optimistic concurrency revision; supply it as expectedRevision on the next write. maximum: `9007199254740991`; exclusiveMinimum: `0` |
> | `change.subject` | object | Required | additional fields rejected |
> | `change.subject.kind` | string | Required | values: `"suggestion"`, `"finding"`, `"action"` |
> | `change.subject.id` | string | Required | Resource identifier returned by the operation. |
> | `change.subject.findingKind` | string / null | Required | |
> | `change.subject.sourceUrl` | string / null | Required | |
> | `change.subject.targetUrl` | string / null | Required | |
> | `change.subject.pageUrl` | string | Required | |
> | `change.subject.message` | string / null | Required | The suggestion or finding message, captured when it was selected. |
> | `change.subject.goal` | string | Required | values: `"link"`, `"repair"`, `"unlink"`, `"page"` |
> | `change.edit` | object | Required | additional fields rejected |
> | `change.edit.anchor` | string / null | Required | |
> | `change.edit.passage` | string / null | Required | |
> | `change.edit.matchStart` | integer / null | Required | |
> | `change.edit.matchEnd` | integer / null | Required | |
> | `change.edit.phraseSource` | string / null | Required | |
> | `change.edit.anchorBy` | string / null | Required | |
> | `change.edit.anchorRef` | string / null | Required | |
> | `change.origin` | object | Required | additional fields rejected |
> | `change.origin.scanId` | string | Required | Identifier returned by the related operation. |
> | `change.origin.sourceCheckedAt` | string / null | Required | |
> | `change.origin.sourceCaptureSha256` | string / null | Required | |
> | `change.dismissReason` | string / null | Required | |
> | `change.note` | string / null | Required | |
> | `change.externalRef` | string / null | Required | |
> | `change.selectedBy` | object | Required | additional fields rejected |
> | `change.selectedBy.kind` | string | Required | values: `"member"`, `"agent"` |
> | `change.selectedBy.id` | string | Required | Resource identifier returned by the operation. |
> | `change.updatedBy` | object | Required | additional fields rejected |
> | `change.updatedBy.kind` | string | Required | values: `"member"`, `"agent"` |
> | `change.updatedBy.id` | string | Required | Resource identifier returned by the operation. |
> | `change.verification` | object / null | Required | |
> | `change.verification.checkedAt` | string | Required | |
> | `change.verification.method` | string | Required | values: `"page_check"`, `"scan"` |
> | `change.verification.scanId` | string | Optional | Identifier returned by the related operation. |
> | `change.verification.requestId` | string | Optional | Identifier returned by the related operation. |
> | `change.verification.state` | string | Required | Saved lifecycle or evidence state, as enumerated for this record. values: `"present"`, `"absent"`, `"unknown"` |
> | `change.verification.reason` | string | Optional | Recorded explanation; null when no explanation applies. |
> | `change.verification.anchorFound` | string | Optional | |
> | `change.verification.anchorMatches` | boolean | Optional | |
> | `change.verification.finalUrl` | string / null | Optional | |
> | `change.verification.captureSha256` | string / null | Optional | |
> | `change.verification.targetHttpStatus` | integer / null | Optional | |
> | `change.verification.targetWorks` | boolean / null | Optional | |
> | `change.verifiedAt` | string / null | Required | |
> | `change.lastCheckedAt` | string / null | Required | |
> | `change.nextCheckAt` | string / null | Required | |
> | `change.createdAt` | string | Required | |
> | `change.updatedAt` | string | Required | |

[Download input schema](/schemas/save_internal_link_change.input.json) · [Download output schema](/schemas/save_internal_link_change.output.json)

## Errors and retries

This write is annotated idempotent without a caller-supplied idempotency key. Reconcile saved state after an uncertain response, then use the same inputs for the same intended operation. Do not add an unsupported key. Operation-specific errors include `INTERNAL_LINK_CHANGES_UNAVAILABLE`, `INTERNAL_LINK_CHANGE_NOT_FOUND`, `INTERNAL_LINK_CHANGE_CONFLICT`, `IDEMPOTENCY_CONFLICT`, `INTERNAL_LINK_SCAN_NOT_FOUND`, `INTERNAL_LINK_SUBJECT_NOT_FOUND`, `INTERNAL_LINK_CHANGE_STALE`, `INTERNAL_LINK_ALREADY_LINKED`, `INTERNAL_LINK_ANCHOR_NOT_IN_PASSAGE`, `SCAN_PROJECTION_NOT_READY`, `INVALID_INPUT`.

See [error recovery](/reference/errors.md) for status, scope, cooldown, cursor and retry handling. Unknown observations are result data and do not establish loss.

## HTTP resource routes

These existing resource routes share the operation’s domain behavior. Their parameter placement, status and response envelope can differ from generic invocation. See [HTTP route details](/reference/http/routes.md).

| Method and route | Success | Details |
| - | - | - |
| `POST /v1/internal-links/changes` | 200 | Supply projectId, requestId and action in the JSON body, with scanId and subjectId to select or dismiss a scan subject, or changeId and revision to update a saved change. requestId is the retry identity. |

## Continue

[verify\_internal\_link\_change](/reference/commands/verify_internal_link_change.md) · [list\_internal\_link\_changes](/reference/commands/list_internal_link_changes.md)

Follow the [related workflow](/guides/internal-links.md), inspect [capability status](/capability-status.md), or return to the [command index](/reference/index.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.