Notification:deleteAll

注意:该接口需要登陆后才能调用。

只要没有错误异常,无论是否有通知被删除,该接口都会返回成功。

HTTP 请求

DELETE /api/notifications

参数

参数名参数位置类型默认值说明
typequerystring

通知类型

取值范围包括:question_answered, question_commented, question_deleted, article_commented, article_deleted, answer_commented, answer_deleted, comment_replied, comment_deleted

响应

空数据,通过状态码区分成功还是失败

示例

{
  "code": 0,
  "data": null
}

参数说明

参数名 类型 说明
code integer

无任何错误时,状态码为 0

data object

该字段为 null,请通过 code 字段判断操作结果