---
title: "PATCH /api/v1/attachments/{attachment}"
method: PATCH
path: "/api/v1/attachments/{attachment}"
tags: ["AttachmentService"]
---

# PATCH /api/v1/attachments/{attachment}

`PATCH /api/v1/attachments/{attachment}`

UpdateAttachment updates an attachment.

## Path parameters

- `attachment` string, required

## Query parameters

- `updateMask` string, field-mask

## Request body

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

## Response `200`

OK

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

## Other responses

- `default` — Default error response

## Changes

- **2025-12-15** `d740073f088f` — 2 warning
  - removed the request property `motionMedia`
  - removed the optional property `motionMedia` from the response with the `200` status

[Change history](https://skmtc.dev/usememos/apis/untitled-api/changes/api/v1/attachments/:attachment/patch.md)

---

[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/195e3cc8223d/schema)
