Skip to content

[Notification] Mark As Read

  • Endpoint Path: /api/fresns/v1/notification/read-status
  • Method: PATCH
  • Request: application/json

Headers Optional Parameter

KeyPublic Mode (Required)Private Mode (Required)
X-Fresns-Aidrequiredrequired
X-Fresns-Aid-Tokenrequiredrequired
X-Fresns-Uidrequiredrequired
X-Fresns-Uid-Tokenrequiredrequired

Body Params

KeyTypeRequiredDescription
typeStringrequiredall or choose
notificationTypeNumberoptional0 All(1~9)
1 System 2 Recommend 3 Like 4 Dislike 5 Follow 6 Block 7 Mention 8 Comment (reply) 9 Quote
notificationIdsStringoptionalnmid, separated by English commas for multiple id

Request Description

  • Choose either notificationType or notificationIds to pass as a parameter, but not both.
  • type = all: Use the notificationType parameter to set all messages of the specified type as read in bulk.
  • type = choose: Use the notificationIds parameter to set specified ID messages as read in bulk.

Return

json
{
    "code": 0,
    "message": "ok",
    "data": null
}

Released under the Apache-2.0 License