---
title: "PATCH /api/v1/memos/{memo}/relations"
method: PATCH
path: "/api/v1/memos/{memo}/relations"
tags: ["MemoService"]
---

# PATCH /api/v1/memos/{memo}/relations

`PATCH /api/v1/memos/{memo}/relations`

SetMemoRelations replaces the full set of mutable REFERENCE relations on a
 memo. COMMENT relations are immutable creation context and are rejected by
 this RPC. An empty list clears references without changing COMMENT.

## Path parameters

- `memo` string, required

## Request body

- SetMemoRelationsRequest
  - `name` string, required — Required. The resource name of the memo. Format: memos/{memo}
  - `relations` MemoRelation[], required — Required. The REFERENCE relations to set for the memo. COMMENT is invalid.
    - `memo` MemoRelationMemo, required — Memo reference in relations.
      - `name` string, required — The resource name of the memo. Format: memos/{memo}
      - `snippet` string — Output only. The snippet of the memo content. Plain text only.
    - `relatedMemo` MemoRelationMemo, required — Memo reference in relations.
      - `name` string, required — The resource name of the memo. Format: memos/{memo}
      - `snippet` string — Output only. The snippet of the memo content. Plain text only.
    - `type` 'TYPE_UNSPECIFIED' | 'REFERENCE' | 'COMMENT', enum, required

## Response `200`

OK

## Other responses

- `default` — Default error response

---

[API](https://skmtc.dev/usememos/apis/untitled-api.md) · [All operations](https://skmtc.dev/usememos/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usememos/untitled-api/revisions/9f2688df7c2e/schema)
