UserService

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

Changed on

UpdateUserNotification updates a notification's status. Only the receiver may call it.

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

userstring required

The user id.

notificationstring required

The notification id.

Query parameters

updateMaskstring field-mask

Required. The fields to update. Only status is supported.

Request body

namestring

Identifier. The resource name of the notification. Format: users/{user}/notifications/{notification}

senderstring

Output only. The user who caused the notification. Format: users/{user}

type'TYPE_UNSPECIFIED' | 'MEMO_COMMENT' | 'MEMO_MENTION' | 'SPACE_INVITATION' enum

Output only. The type of the notification.

status'STATUS_UNSPECIFIED' | 'UNREAD' | 'ARCHIVED' enum

Optional. The status of the notification.

createTimestring date-time

Output only. The creation timestamp.

Response

OK

namestring

Identifier. The resource name of the notification. Format: users/{user}/notifications/{notification}

senderstring

Output only. The user who caused the notification. Format: users/{user}

type'TYPE_UNSPECIFIED' | 'MEMO_COMMENT' | 'MEMO_MENTION' | 'SPACE_INVITATION' enum

Output only. The type of the notification.

status'STATUS_UNSPECIFIED' | 'UNREAD' | 'ARCHIVED' enum

Optional. The status of the notification.

createTimestring date-time

Output only. The creation timestamp.

Changes