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

> Set or explicitly clear placement deal fields at an expected revision.

`update_link_lifecycle`

Set or explicitly clear placement deal fields at an expected revision. Costs use integer currency minor units; no payment or message is sent.

<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_lifecycle",
      "arguments": {
        "projectId": "project_example",
        "watchId": "watch_example",
        "revision": 0,
        "deal": {
          "costMinor": 0,
          "currency": "USD"
        }
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call update_link_lifecycle --args '{"projectId":"project_example","watchId":"watch_example","revision":0,"deal":{"costMinor":0,"currency":"USD"}}'
  ```

  ```bash HTTP theme={null}
  curl "$AGENTLINKOPS_API_URL/v1/commands/update_link_lifecycle" \
    -H "Authorization: Bearer $AGENTLINKOPS_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"projectId":"project_example","watchId":"watch_example","revision":0,"deal":{"costMinor":0,"currency":"USD"}}'
  ```
</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}
{
  "watchId": "watch_example",
  "projectId": "project_example",
  "revision": 1,
  "deal": {
    "costMinor": 0,
    "currency": "USD",
    "acquiredOn": null,
    "expiresOn": null,
    "renewalWindowDays": null,
    "contactRef": null,
    "contactLabel": null,
    "dealNote": null
  },
  "createdAt": "2026-09-20T00:00:00.000Z",
  "updatedAt": "2026-09-20T00: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 | Identifier of the project returned by its create or list operation. minLength: 1; maxLength: 200   |
| `watchId`                | string         | Required | Identifier of the watch returned by its create or list operation. minLength: 1; maxLength: 200     |
| `revision`               | integer        | Required | Immutable set revision to read or compare. minimum: 0; maximum: 9007199254740991                   |
| `deal`                   | object         | Required | The deal value; allowed values and bounds are specified in this schema. additional fields rejected |
| `deal.costMinor`         | integer / null | Optional |                                                                                                    |
| `deal.currency`          | string / null  | Optional |                                                                                                    |
| `deal.acquiredOn`        | string,null    | Optional |                                                                                                    |
| `deal.expiresOn`         | string,null    | Optional |                                                                                                    |
| `deal.renewalWindowDays` | integer / null | Optional |                                                                                                    |
| `deal.contactRef`        | string / null  | Optional |                                                                                                    |
| `deal.contactLabel`      | string / null  | Optional |                                                                                                    |
| `deal.dealNote`          | string / null  | Optional |                                                                                                    |

### Validation and omitted values

Costs are integer currency minor units; set or clear costMinor and currency together. Omitted fields remain unchanged; explicit null clears a field.

Writes require the observed revision. Reports keep currencies separate and disclose missing dates; renewal notices use retained status and do not send messages.

## 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                                                                                                 |
| ------------------------ | -------------- | -------- | ----------------------------------------------------------------------------------------------------------------------- |
| `watchId`                | string         | Required | Identifier returned by the related operation. minLength: 1; maxLength: 200                                              |
| `projectId`              | string         | Required | Identifier returned by the related operation. minLength: 1; maxLength: 200                                              |
| `revision`               | integer        | Required | Optimistic concurrency revision; supply it as expectedRevision on the next write. minimum: 0; maximum: 9007199254740991 |
| `deal`                   | object         | Required | additional fields rejected                                                                                              |
| `deal.costMinor`         | integer / null | Required |                                                                                                                         |
| `deal.currency`          | string / null  | Required |                                                                                                                         |
| `deal.acquiredOn`        | string / null  | Required |                                                                                                                         |
| `deal.expiresOn`         | string / null  | Required |                                                                                                                         |
| `deal.renewalWindowDays` | integer / null | Required |                                                                                                                         |
| `deal.contactRef`        | string / null  | Required |                                                                                                                         |
| `deal.contactLabel`      | string / null  | Required |                                                                                                                         |
| `deal.dealNote`          | string / null  | Required |                                                                                                                         |
| `createdAt`              | string / null  | Required |                                                                                                                         |
| `updatedAt`              | string / null  | Required |                                                                                                                         |

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

## Errors and retries

The command is annotated idempotent. Reuse an accepted idempotency key when the input provides one; changing the payload under a reused key can conflict.

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

This operation has no separate resource alias. Use its generic command route in a matching environment.

## Continue

[get\_link\_lifecycle](/reference/commands/get_link_lifecycle) · [get\_lifecycle\_report](/reference/commands/get_lifecycle_report)

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