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

# Set link type

> Set or clear the one person-chosen type of a monitored link.

`set_link_type`

Set or clear the one person-chosen type of a monitored link. A person's type is never replaced by a model suggestion.

<Note>This command name is absent from deployment evidence dated 2026-09-20. 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.</Note>

| Access | Behavior |
| - | - |
| `watches:write` | 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), [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": "set_link_type",
      "arguments": {
        "watchId": "wat_00000000-0000-4000-8000-000000000000",
        "type": "directory_entry"
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call set_link_type --args '{"watchId":"wat_00000000-0000-4000-8000-000000000000","type":"directory_entry"}'
  ```

  ```bash HTTP theme={null}
  curl --fail-with-body https://app.agentlinkops.com/v1/commands/set_link_type \
    -H "Authorization: Bearer $AGENTLINKOPS_TOKEN" \
    -H 'Content-Type: application/json' \
    --data '{"watchId":"wat_00000000-0000-4000-8000-000000000000","type":"directory_entry"}'
  ```
</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}
{
  "id": "wat_00000000-0000-4000-8000-000000000000",
  "type": "directory_entry",
  "type_source": "person",
  "type_revision": 1,
  "tags": [
    {
      "id": "tag_example",
      "name": "Outreach Q4",
      "color": "#075985"
    }
  ],
  "disavow": 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 | watch ID from create/list. minLength: 1; maxLength: 200 |
| `type` | string / null | Required | type; see schema. |
| `revision` | integer | Optional | Immutable set revision to read/compare. minimum: 0; maximum: 9007199254740991 |

### Validation and omitted values

One type per link. A person's type is never replaced by a model suggestion; null clears it.

Guest post is a person-set type only; the model never suggests it.

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

| Field | Type | Presence | Meaning and constraints |
| - | - | - | - |
| `id` | string | Required | Resource identifier returned by the operation. |
| `type` | string / null | Required | |
| `type_source` | string / null | Required | |
| `tags` | array | Required | |
| `tags[].id` | string | Required | Resource identifier returned by the operation. |
| `tags[].name` | string | Required | |
| `tags[].color` | string | Required | |
| `disavow` | string / null | Required | |

[Download input schema](/schemas/set_link_type.input.json) · [Download output schema](/schemas/set_link_type.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.

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 |
| - | - | - |
| `PUT /v1/watches/{watchId}/type` | 200 | The URL selects watchId. Send type (or null to clear it) and optional revision in JSON. A person-chosen type is retained independently of model suggestions. |

## Continue

[list\_link\_watches](/reference/commands/list_link_watches) · [tag\_links](/reference/commands/tag_links)

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


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