---
title: "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."
method: POST
path: "/v1/agent-memory/{investigationId}/link/{memoryId}"
tags: ["Agent Memory"]
---

# 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}`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/agent-memory/{investigationId}/link/{memoryId}`
- Auth: none declared

## Path parameters

- `investigationId` string, required
- `memoryId` string, required

## Request body

- LinkMemoryRequest
  - `resolution` string
  - `rootCause` string
  - `rootCauseConfidence` 'CONFIRMED' | 'SUSPECTED' | 'UNKNOWN'
  - `ruledOut` string
  - `symptoms` string

## Response `200`

The link was applied

- LinkMemoryResponse
  - `textMerged` boolean

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
