折叠/展开
Body {noteIds(≤200), folded:true|false, confirm:true},整批一撤销组。最轻写动词,只改视图。叶子无折叠语义(skipped no_children)。脑图开着时可能需重进才见。
Body {noteIds(≤200), folded:true|false, confirm:true},整批一撤销组。最轻写动词,只改视图。叶子无折叠语义(skipped no_children)。脑图开着时可能需重进才见。
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/fold" \ -H "Content-Type: application/json" \ -d '{ "noteIds": [ "string" ], "folded": true, "confirm": true }'删除卡片 POST
Body {noteIds(≤50,同集), confirm:true},整批一撤销组。只删点名卡,子卡接到祖父(grandparent)或升顶层重排(topLevel)。合并子笔记随卡消失;虚拟卡断引用;闪卡复制体级联。回收站默认关,先打快照。逐卡展示标题+子卡去向获同意。outcome deleted/hidden 如实转告。真 dry-run(422 + wouldDelete/cards[]/totalCascadeDeleted/cascadesIntoStudySets)。
写卡片 hashtag POST
Body {noteIds(≤200), operation:add|remove|replace, hashtags(完整叶路径,如 #医学/心血管/心衰), includeDescendants?(仅 remove), confirm:true}。禁止用 text 接口伪造标签(422 HASHTAG_ROUTE_REQUIRED)。replace 空数组=清空(须展示获同意)。整批一撤销组,persisted:true 才成功。