删除卡片
Body {noteIds(≤50,同集), confirm:true},整批一撤销组。只删点名卡,子卡接到祖父(grandparent)或升顶层重排(topLevel)。合并子笔记随卡消失;虚拟卡断引用;闪卡复制体级联。回收站默认关,先打快照。逐卡展示标题+子卡去向获同意。outcome deleted/hidden 如实转告。真 dry-run(422 + wouldDelete/cards[]/totalCascadeDeleted/cascadesIntoStudySets)。
Body {noteIds(≤50,同集), confirm:true},整批一撤销组。只删点名卡,子卡接到祖父(grandparent)或升顶层重排(topLevel)。合并子笔记随卡消失;虚拟卡断引用;闪卡复制体级联。回收站默认关,先打快照。逐卡展示标题+子卡去向获同意。outcome deleted/hidden 如实转告。真 dry-run(422 + wouldDelete/cards[]/totalCascadeDeleted/cascadesIntoStudySets)。
Authorization
bearerAuth 安装脚本写入 ~/.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 }'复制卡片分支 POST
Body {noteIds,targetParentNoteId,mode:reference|clone,confirm:true} 或批量 copies[]。复制所选根整棵分支(快照,不随源树后续调整同步);祖先后代同选时后代 covered_by_selected_ancestor 跳过;≤50 根;目标须为已存在普通脑图卡;源不能是隐藏/复习卡。可跨集(源文档按规则加入目标集)。真 dry-run(422 + wouldCopy)。persisted:true 才成功。
折叠/展开 POST
Body {noteIds(≤200), folded:true|false, confirm:true},整批一撤销组。最轻写动词,只改视图。叶子无折叠语义(skipped no_children)。脑图开着时可能需重进才见。