删除¶
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"}'