From 337e93b4f623f7418f5ea8ec2e557f9768d734e0 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 30 Dec 2021 16:45:00 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=8F=90=E4=BE=9B=E6=8F=92?= =?UTF-8?q?=E5=85=A5=E5=9D=97=E3=80=81=E6=9B=B4=E6=96=B0=E5=9D=97=E5=92=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=9D=97=E7=9A=84=20API=20https://github.com?= =?UTF-8?q?/siyuan-note/siyuan/issues/3334?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/API.md b/API.md index 2bf257dcd..a06212af1 100644 --- a/API.md +++ b/API.md @@ -522,6 +522,42 @@ * `action.data`:更新块生成的 DOM +### 删除块 + +* `/api/block/deleteBlock` +* 参数 + + ```json + { + "id": "20211230161520-querkps" + } + ``` + + * `id`:待删除块 ID +* 返回值 + + ```json + { + "code": 0, + "msg": "", + "data": [ + { + "doOperations": [ + { + "action": "delete", + "data": null, + "id": "20211230162439-vtm09qo", + "parentID": "", + "previousID": "", + "retData": null + } + ], + "undoOperations": null + } + ] + } + ``` + ## 属性 ### 设置块属性