Skip to content

[Notification] Delete Messages

  • Endpoint Path: /api/fresns/v1/notification/messages
  • Method: DELETE
  • 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
notificationTypeNumberoptional1 System 2 Recommend 3 Like 4 Dislike 5 Follow 6 Block 7 Mention 8 Comment (reply)
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 delete all messages of the specified type in bulk.
  • type = choose: Use the notificationIds parameter to delete messages with specified IDs in bulk.

Return

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

Released under the Apache-2.0 License