# Record that this investigation is another occurrence of a memory you already found, instead of recording a second copy of it. Counts a recurrence against that memory and fills in anything it was missing, unless a person edited it: then it takes none of the request's text and textMerged is false. A memory a person marked wrong refuses a new link with 409; only a retried link from an investigation it already counts is accepted, taking no text. The memory must belong to the same agent.

**POST** `/v1/agent-memory/{investigationId}/link/{memoryId}`

**Operation ID**: `link`
**Summary**: Record that this investigation is another occurrence of a memory you already found, instead of recording a second copy of it. Counts a recurrence against that memory and fills in anything it was missing, unless a person edited it: then it takes none of the request's text and textMerged is false. A memory a person marked wrong refuses a new link with 409; only a retried link from an investigation it already counts is accepted, taking no text. The memory must belong to the same agent.
## Tags
- Agent Memory
## Parameters

- **investigationId** (required) - path
  - Type: string
- **memoryId** (required) - path
  - Type: string

## Request Body

**Content-Type**: `application/json`

**Schema**: `LinkMemoryRequest`

## Responses

### 200

The link was applied

- **Content-Type**: `application/json` / `LinkMemoryResponse`