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

# Update link watch

> Pause/resume a placement or update cadence and expectations.

`update_link_watch`

Pause/resume a placement or update cadence and expectations.

<Note>Available in the deployed MCP and HTTP bundle. Confirm access and inputs with your connected catalog. Workspace scopes and enabled providers still apply.</Note>

| Access          | Behavior                                                   |
| --------------- | ---------------------------------------------------------- |
| `watches:write` | Writes or admits work; can change or remove existing state |

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

## Example request

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

<CodeGroup>
  ```json MCP theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "update_link_watch",
      "arguments": {
        "watchId": "watch_example"
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call update_link_watch --args '{"watchId":"watch_example"}'
  ```

  ```bash HTTP theme={null}
  curl "$AGENTLINKOPS_API_URL/v1/commands/update_link_watch" \
    -H "Authorization: Bearer $AGENTLINKOPS_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"watchId":"watch_example"}'
  ```
</CodeGroup>

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

```json theme={null}
{
  "workspace_id": "ws_example",
  "project_id": "pr_example",
  "status": "paused",
  "cadence_seconds": 86400,
  "state": "unknown",
  "observation_state": {},
  "created_at": "2026-09-13T12:00:00.000Z",
  "updated_at": "2026-09-13T12:00:00.000Z",
  "last_attempt_at": null,
  "last_success_at": null,
  "last_observation_id": null,
  "next_check_at": "2026-09-13T12:00:00.000Z",
  "overdue_reason": null,
  "id": "watch_example",
  "source_url": "https://publisher.example.org/article",
  "target_url": "https://example.com/",
  "target_scope": "exact",
  "expected_anchor": null,
  "expected_rel": null,
  "local_reference": "ledger:example",
  "last_successful_observation_id": null
}
```

## 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                                                                                          |
| ---------------- | ------------- | -------- | ---------------------------------------------------------------------------------------------------------------- |
| `watchId`        | string        | Required | Identifier of the watch returned by its create or list operation. minLength: 1; maxLength: 200                   |
| `status`         | string        | Optional | Lifecycle status filter or requested status; this is separate from observation state. values: "active", "paused" |
| `cadenceSeconds` | integer       | Optional | Scheduled check interval in seconds, from 3600 to 2592000. minimum: 3600; maximum: 2592000                       |
| `expectedAnchor` | string / null | Optional | Expected link anchor text; null clears the expectation.                                                          |
| `expectedRel`    | array / null  | Optional | Expected rel tokens; null clears the expectation.                                                                |
| `localReference` | string        | Optional | Customer-owned reference to associate this record with a local ledger entry. maxLength: 200                      |

### Validation and omitted values

Supply at least one update field besides watchId. Omitted status, cadence and expectation fields preserve their existing values. Explicit null clears expectedAnchor or expectedRel.

Lengthening cadence can postpone an existing due slot after a prior attempt; it does not shorten a stored retry floor. Resuming a paused watch can make its first check due now.

Relation expectations allow at most twenty tokens, each one to forty letters, digits, `_` or `-`.

## Output fields

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

* **`id`** (string, required): Resource identifier returned by the operation.
* **`workspace_id`** (string, required): Workspace that owns this record.
* **`project_id`** (string, required): Project that owns this record.
* **`status`** (string, required): Resource lifecycle status. values: "active", "paused"
* **`cadence_seconds`** (number, required).
* **`state`** (string, required): Saved lifecycle or evidence state, as enumerated for this record.
* **`observation_state`** (object, required): Saved observation state. Before the first check, this object can be empty.
* **`created_at`** (string, required): UTC timestamp when the record was created.
* **`updated_at`** (string, required): UTC timestamp of the last record update.
* **`last_attempt_at`** (string / null, required).
* **`last_success_at`** (string / null, required).
* **`last_observation_id`** (string / null, required): Identifier returned by the related operation.
* **`next_check_at`** (string / null, required).
* **`overdue_reason`** (string / null, required).
* **`source_url`** (string, required): Publisher page URL recorded in this evidence.
* **`target_url`** (string, required): Destination URL recorded in this evidence.
* **`target_scope`** (string, required).
* **`expected_anchor`** (string / null, required).
* **`expected_rel`** (array / null, required).
* **`local_reference`** (string / null, required): Customer reference for joining this record to a local ledger entry.
* **`last_successful_observation_id`** (string / null, required): Identifier returned by the related operation.
* **`history_compacted_before`** (string / null, optional).
* **`created`** (boolean, optional): True when this request created the record; false when an existing record was reused.
* **`detail`** (string, optional).

<Accordion title="All fields and nested objects">
  | Field                                                                      | Type          | Presence | Meaning and constraints                                                              |
  | -------------------------------------------------------------------------- | ------------- | -------- | ------------------------------------------------------------------------------------ |
  | `id`                                                                       | string        | Required | Resource identifier returned by the operation.                                       |
  | `workspace_id`                                                             | string        | Required | Workspace that owns this record.                                                     |
  | `project_id`                                                               | string        | Required | Project that owns this record.                                                       |
  | `status`                                                                   | string        | Required | Resource lifecycle status. values: "active", "paused"                                |
  | `cadence_seconds`                                                          | number        | Required |                                                                                      |
  | `state`                                                                    | string        | Required | Saved lifecycle or evidence state, as enumerated for this record.                    |
  | `observation_state`                                                        | object        | Required | Saved observation state. Before the first check, this object can be empty.           |
  | `observation_state.state`                                                  | string        | Optional | Saved lifecycle or evidence state, as enumerated for this record.                    |
  | `observation_state.uncertain`                                              | boolean       | Optional |                                                                                      |
  | `observation_state.checked_at`                                             | string        | Optional | UTC timestamp of the saved check.                                                    |
  | `observation_state.lastChangedAt`                                          | string / null | Optional |                                                                                      |
  | `observation_state.firstAbsentAt`                                          | string / null | Optional |                                                                                      |
  | `observation_state.consecutiveAbsent`                                      | number        | Optional |                                                                                      |
  | `observation_state.nextCheckAt`                                            | string / null | Optional |                                                                                      |
  | `observation_state.reason`                                                 | string / null | Optional | Recorded explanation; null when no explanation applies.                              |
  | `observation_state.latestAttempt`                                          | object / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.state`                                    | string        | Optional | Saved lifecycle or evidence state, as enumerated for this record.                    |
  | `observation_state.latestAttempt.reason`                                   | string / null | Optional | Recorded explanation; null when no explanation applies.                              |
  | `observation_state.latestAttempt.checkedAt`                                | string        | Optional |                                                                                      |
  | `observation_state.latestAttempt.httpStatus`                               | number / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrenceCount`                          | number        | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences`                              | array         | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].href`                       | string / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].targetUrl`                  | string / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].anchor`                     | string / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].rel`                        | array         | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].context`                    | string / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].locator`                    | object / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].locator.line`               | number / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].locator.column`             | number / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.occurrences[].locator.offset`             | number / null | Optional |                                                                                      |
  | `observation_state.latestAttempt.checkerVersion`                           | string        | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation`                              | object / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.state`                        | string        | Optional | Saved lifecycle or evidence state, as enumerated for this record.                    |
  | `observation_state.lastSuccessfulObservation.reason`                       | string / null | Optional | Recorded explanation; null when no explanation applies.                              |
  | `observation_state.lastSuccessfulObservation.checkedAt`                    | string        | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.httpStatus`                   | number / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrenceCount`              | number        | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences`                  | array         | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].href`           | string / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].targetUrl`      | string / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].anchor`         | string / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].rel`            | array         | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].context`        | string / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].locator`        | object / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].locator.line`   | number / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].locator.column` | number / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.occurrences[].locator.offset` | number / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservation.checkerVersion`               | string        | Optional |                                                                                      |
  | `observation_state.lastSuccessfulObservationSameAsLatestAttempt`           | boolean       | Optional |                                                                                      |
  | `observation_state.confirmedState`                                         | string / null | Optional |                                                                                      |
  | `observation_state.lastSuccessfulAt`                                       | string / null | Optional |                                                                                      |
  | `observation_state.lastHealthyAt`                                          | string / null | Optional |                                                                                      |
  | `observation_state.firstUnavailableAt`                                     | string / null | Optional |                                                                                      |
  | `observation_state.unavailableCount`                                       | number        | Optional |                                                                                      |
  | `observation_state.wasEverHealthy`                                         | boolean       | Optional |                                                                                      |
  | `observation_state.retryNotBefore`                                         | string / null | Optional |                                                                                      |
  | `observation_state.ignored`                                                | boolean       | Optional |                                                                                      |
  | `created_at`                                                               | string        | Required | UTC timestamp when the record was created.                                           |
  | `updated_at`                                                               | string        | Required | UTC timestamp of the last record update.                                             |
  | `last_attempt_at`                                                          | string / null | Required |                                                                                      |
  | `last_success_at`                                                          | string / null | Required |                                                                                      |
  | `last_observation_id`                                                      | string / null | Required | Identifier returned by the related operation.                                        |
  | `next_check_at`                                                            | string / null | Required |                                                                                      |
  | `overdue_reason`                                                           | string / null | Required |                                                                                      |
  | `source_url`                                                               | string        | Required | Publisher page URL recorded in this evidence.                                        |
  | `target_url`                                                               | string        | Required | Destination URL recorded in this evidence.                                           |
  | `target_scope`                                                             | string        | Required |                                                                                      |
  | `expected_anchor`                                                          | string / null | Required |                                                                                      |
  | `expected_rel`                                                             | array / null  | Required |                                                                                      |
  | `local_reference`                                                          | string / null | Required | Customer reference for joining this record to a local ledger entry.                  |
  | `last_successful_observation_id`                                           | string / null | Required | Identifier returned by the related operation.                                        |
  | `history_compacted_before`                                                 | string / null | Optional |                                                                                      |
  | `created`                                                                  | boolean       | Optional | True when this request created the record; false when an existing record was reused. |
  | `detail`                                                                   | string        | Optional |                                                                                      |
</Accordion>

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

## Errors and retries

This command is not annotated idempotent. After a timeout, inspect existing state before repeating a write.

See [error recovery](/reference/errors) 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).

| Method and route              | Success | Details                                       |
| ----------------------------- | ------- | --------------------------------------------- |
| `PATCH /v1/watches/{watchId}` | 200     | Remaining arguments go in a JSON object body. |

## Continue

[get\_link\_watch](/reference/commands/get_link_watch)

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