mnapis

删除卡片

Body {noteIds(≤50,同集), confirm:true},整批一撤销组。只删点名卡,子卡接到祖父(grandparent)或升顶层重排(topLevel)。合并子笔记随卡消失;虚拟卡断引用;闪卡复制体级联。回收站默认关,先打快照。逐卡展示标题+子卡去向获同意。outcome deleted/hidden 如实转告。真 dry-run(422 + wouldDelete/cards[]/totalCascadeDeleted/cascadesIntoStudySets)。

POST
/notes/delete

Body {noteIds(≤50,同集), confirm:true},整批一撤销组。只删点名卡,子卡接到祖父(grandparent)或升顶层重排(topLevel)。合并子笔记随卡消失;虚拟卡断引用;闪卡复制体级联。回收站默认关,先打快照。逐卡展示标题+子卡去向获同意。outcome deleted/hidden 如实转告。真 dry-run(422 + wouldDelete/cards[]/totalCascadeDeleted/cascadesIntoStudySets)。

Authorization

bearerAuth
AuthorizationBearer <token>

安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/notes/delete" \  -H "Content-Type: application/json" \  -d '{    "noteIds": [      "string"    ],    "confirm": true  }'
Empty