跳转至

删除



POST /api/v1/notes_v2/{note_uuid}/delete

概述

删除新版笔记。

路由参数

参数名 类型 必选 说明
note_uuid string Y Studio 新版笔记 UUID

Body 请求参数

参数名 类型 必选 说明
ifMatch string 可选 ETag,传入时转发给 NbookDB If-Match
允许为空: False

参数补充说明

使用 URL 中的 note_uuid 删除笔记。请求体可选传 ifMatch

  • 建议传入详情或上一次保存返回的 etag 作为 ifMatch
  • 删除成功后,该笔记不会再出现在列表中。
  • 私有笔记只有创建者可删除;公开笔记需要当前 API Key 具备写权限。

请求例子

curl 'https://openapi.guance.com/api/v1/notes_v2/nbnote_xxx/delete' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"ifMatch":"etag_xxx"}'

响应

{
    "code": 200,
    "content": {
        "noteUUID": "nbnote_xxx",
        "noteName": "A"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-XXXX"
}

文档评价

文档内容是否对您有帮助? ×