Skip to content

[Notification] Delete

  • Endpoint Path: /api/v2/notification/delete
  • Method: DELETE
  • Request: application/json

Headers Optional Parameter

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

Body Params

Parameter NameTypeRequiredDescription
typeStringrequiredall or choose
notificationTypeNumberoptional1 System 2 Recommend 3 Like 4 Dislike 5 Follow 6 Block 7 Mention 8 Comment (reply)
notificationIdsStringoptionalnotificationId 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