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

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

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

SetMemoAttachments replaces the full set of attachments on a memo with the
 provided list (not an append). Pass the complete desired set; an empty list
 clears all attachments. Idempotent.

## Path parameters

- `memo` string, required

## Request body

- SetMemoAttachmentsRequest
  - `name` string, required — Required. The resource name of the memo. Format: memos/{memo}
  - `attachments` Attachment[], required — Required. The attachments to set for the memo.
    - `name` string — The name of the attachment. Format: attachments/{attachment}
    - `createTime` string, date-time — Output only. The creation timestamp.
    - `filename` string, required — The filename of the attachment.
    - `content` string, bytes — Input only. The content of the attachment.
    - `externalLink` string — Optional. The external link of the attachment.
    - `type` string, required — The MIME type of the attachment.
    - `size` string — Output only. The size of the attachment in bytes.
    - `memo` string — Optional. The related memo. Refer to `Memo.name`. Format: memos/{memo}
    - `motionMedia` MotionMedia
      - `family` 'MOTION_MEDIA_FAMILY_UNSPECIFIED' | 'APPLE_LIVE_PHOTO' | 'ANDROID_MOTION_PHOTO', enum
      - `role` 'MOTION_MEDIA_ROLE_UNSPECIFIED' | 'STILL' | 'VIDEO' | 'CONTAINER', enum
      - `groupId` string
      - `presentationTimestampUs` string
      - `hasEmbeddedVideo` boolean

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