折成子脑图 / 展回
Body {confirm:true} 折叠(须有子节点,否则 422 NO_CHILDREN);{undo:true, confirm:true} 展回。
Body {confirm:true} 折叠(须有子节点,否则 422 NO_CHILDREN);{undo:true, confirm:true} 展回。
Authorization
bearerAuth 安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。
In: header
Path Parameters
卡片 noteid
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/notes/string/fold-into-sub-map" \ -H "Content-Type: application/json" \ -d '{ "confirm": true }'定位到卡 POST
Body {topicid?}。多集引用同一卡时用 topicid 指定。走 MN URL scheme,与书架点击同路。会抢屏,仅用户要求时用。异步,事后 /context 对账。无 confirm。
原生图片挖空 POST
给已存在图片/PDF 摘录笔记增/替原生遮罩(highlight_pic.maskRects)。Body {coordinateSpace:normalized, operation:add|replace, masks:[{rect:{x,y,w,h},group?,flags?,isText?}](1..200), expectedSourceFingerprint, confirm?, expectedMaskFingerprint?}。须先读 batch-get,用 occlusionBaseContentPath 底图出候选并预览。真 dry-run(422 CONFIRM_REQUIRED + sourceFingerprint/maskFingerprint/映射数/旧复习卡警告);指纹变了 409 IMAGE_SOURCE_CHANGED/OCCLUSION_CHANGED。persisted:true 才成功;已有复习卡为快照,不自动改写。