删除学习集
最重写动词。Body {expectedTitle(须与库中完全一致), confirm:true, keepHighlights?=true, keepSnapshotHistory?=true}。默认隐藏卡片+保留划线+自动打快照(preDeleteSnapshotId)。彻底清才传 false(不可恢复)。卡组删除走同一端点(keepHighlights:false 才真删干净)。
最重写动词。Body {expectedTitle(须与库中完全一致), confirm:true, keepHighlights?=true, keepSnapshotHistory?=true}。默认隐藏卡片+保留划线+自动打快照(preDeleteSnapshotId)。彻底清才传 false(不可恢复)。卡组删除走同一端点(keepHighlights:false 才真删干净)。
Authorization
bearerAuth 安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。
In: header
Path Parameters
学习集 topicid(卡组删除走同一端点时为 deckId)
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/study-sets/string/delete" \ -H "Content-Type: application/json" \ -d '{ "expectedTitle": "string", "confirm": true }'脑图树 GET
返回扁平 nodes[]({noteid,parent,depth,childCount,…}),父子靠 parent 拼,非嵌套 children。subMapId 为归属标签(住在哪张子脑图里)。title 超 64 截断;完整内容走 batch-get。?root= 读单张子脑图。
从学习集移除文档 POST
对齐 App「从学习集中移除」。文档留库,但该书有锚卡片会失去回源(startpage 清空)。先不带 confirm 打一次看 details.notesLosingSource,告知用户后再 confirm。服务端自动打快照(preRemoveSnapshotId)。