[Notification] Delete
- Endpoint Path:
/api/v2/notification/delete
- Method:
DELETE
- Request:
application/json
Headers Optional Parameter
Parameter Name | Public Mode (Required) | Private Mode (Required) |
---|---|---|
X-Fresns-Aid | required | required |
X-Fresns-Aid-Token | required | required |
X-Fresns-Uid | required | required |
X-Fresns-Uid-Token | required | required |
Body Params
Parameter Name | Type | Required | Description |
---|---|---|---|
type | String | required | all 或 choose |
notificationType | Number | optional | 1 系统通知 2 推荐内容 3 点赞 4 踩 5 关注 6 屏蔽 7 提及 8 评论 |
notificationIds | String | optional | 消息 notificationId,多个以英文逗号隔开 |
Request Description
notificationType
和notificationIds
二选一传参,不可同时传参。type = all
使用notificationType
参数,批量删除指定类型全部消息。type = choose
使用notificationIds
参数,批量删除指定 ID 的消息。
Return
json
{
"code": 0,
"message": "ok",
"data": null
}