---
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 relations on a memo with the
 provided list (not an append). Pass the complete desired set; an empty list
 clears all relations. Idempotent.

## 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 relations to set for the memo.
    - `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.net/usememos/apis/untitled-api.md) · [All operations](https://skmtc.net/usememos/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usememos/untitled-api/revisions/f01e84cf5acc/schema)
