---
title: "PATCH /api/v1/users/{user}/notifications/{notification}"
method: PATCH
path: "/api/v1/users/{user}/notifications/{notification}"
tags: ["UserService"]
---

# PATCH /api/v1/users/{user}/notifications/{notification}

`PATCH /api/v1/users/{user}/notifications/{notification}`

UpdateUserNotification updates a notification.

## Path parameters

- `user` string, required
- `notification` string, required

## Query parameters

- `updateMask` string, field-mask

## Request body

- UserNotification
  - `name` string — The resource name of the notification. Format: users/{user}/notifications/{notification}
  - `sender` string — The sender of the notification. Format: users/{user}
  - `senderUser` User
    - `name` string — The resource name of the user. Format: users/{user}
    - `role` 'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER', enum, required — The role of the user.
    - `username` string, required — Required. The unique username for login.
    - `email` string — Optional. The email address of the user.
    - `displayName` string — Optional. The display name of the user.
    - `avatarUrl` string — Optional. The avatar URL of the user.
    - `description` string — Optional. The description of the user.
    - `password` string — Input only. The password for the user.
    - `state` 'STATE_UNSPECIFIED' | 'NORMAL' | 'ARCHIVED', enum, required — The state of the user.
    - `createTime` string, date-time — Output only. The creation timestamp.
    - `updateTime` string, date-time — Output only. The last update timestamp.
  - `status` 'STATUS_UNSPECIFIED' | 'UNREAD' | 'ARCHIVED', enum — The status of the notification.
  - `createTime` string, date-time — The creation timestamp.
  - `type` 'TYPE_UNSPECIFIED' | 'MEMO_COMMENT' | 'MEMO_MENTION', enum — The type of the notification.
  - `memoComment` UserNotificationMemoCommentPayload
    - `memo` string — The memo name of comment. Format: memos/{memo}
    - `relatedMemo` string — The name of related memo. Format: memos/{memo}
    - `memoSnippet` string — Preview text of the comment memo.
    - `relatedMemoSnippet` string — Preview text of the related memo.
  - `memoMention` UserNotificationMemoMentionPayload
    - `memo` string — The memo that contains the mention. Format: memos/{memo}
    - `relatedMemo` string — The related parent memo when the mention was created in a comment. Format: memos/{memo}
    - `memoSnippet` string — Preview text of the memo that contains the mention.
    - `relatedMemoSnippet` string — Preview text of the related parent memo.

## Response `200`

OK

- UserNotification
  - `name` string — The resource name of the notification. Format: users/{user}/notifications/{notification}
  - `sender` string — The sender of the notification. Format: users/{user}
  - `senderUser` User
    - `name` string — The resource name of the user. Format: users/{user}
    - `role` 'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER', enum, required — The role of the user.
    - `username` string, required — Required. The unique username for login.
    - `email` string — Optional. The email address of the user.
    - `displayName` string — Optional. The display name of the user.
    - `avatarUrl` string — Optional. The avatar URL of the user.
    - `description` string — Optional. The description of the user.
    - `password` string — Input only. The password for the user.
    - `state` 'STATE_UNSPECIFIED' | 'NORMAL' | 'ARCHIVED', enum, required — The state of the user.
    - `createTime` string, date-time — Output only. The creation timestamp.
    - `updateTime` string, date-time — Output only. The last update timestamp.
  - `status` 'STATUS_UNSPECIFIED' | 'UNREAD' | 'ARCHIVED', enum — The status of the notification.
  - `createTime` string, date-time — The creation timestamp.
  - `type` 'TYPE_UNSPECIFIED' | 'MEMO_COMMENT' | 'MEMO_MENTION', enum — The type of the notification.
  - `memoComment` UserNotificationMemoCommentPayload
    - `memo` string — The memo name of comment. Format: memos/{memo}
    - `relatedMemo` string — The name of related memo. Format: memos/{memo}
    - `memoSnippet` string — Preview text of the comment memo.
    - `relatedMemoSnippet` string — Preview text of the related memo.
  - `memoMention` UserNotificationMemoMentionPayload
    - `memo` string — The memo that contains the mention. Format: memos/{memo}
    - `relatedMemo` string — The related parent memo when the mention was created in a comment. Format: memos/{memo}
    - `memoSnippet` string — Preview text of the memo that contains the mention.
    - `relatedMemoSnippet` string — Preview text of the related parent memo.

## Other responses

- `default` — Default error response

## Changes

> 63 revisions in range; 51 could not be searched.

- **2025-12-15** `d740073f088f` — 3 warning, 4 info
  - removed the optional property `memoComment` from the response with the `200` status
  - removed the optional property `memoMention` from the response with the `200` status
  - removed the optional property `senderUser` from the response with the `200` status
  - added the new optional request property `activityId`
  - …3 more

[Change history](https://skmtc.dev/usememos/apis/untitled-api/changes/api/v1/users/:user/notifications/:notification/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/9f2688df7c2e/schema)
