改正文
Body 同改标题。对 kind:blank 的 texts[].noteid 用同一端点。改正文前判摘录卡(texts[].excerpt 任一 true,或 sourceAnchor.hasExcerpt;勿用 sourceAnchor.page 判 block 包)。摘录卡改文致文字与原书脱钩(回源不受影响),须告知用户。
Body 同改标题。对 kind:blank 的 texts[].noteid 用同一端点。改正文前判摘录卡(texts[].excerpt 任一 true,或 sourceAnchor.hasExcerpt;勿用 sourceAnchor.page 判 block 包)。摘录卡改文致文字与原书脱钩(回源不受影响),须告知用户。
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/text" \ -H "Content-Type: application/json" \ -d '{ "text": "string", "confirm": true }'合并分支 POST
Body {confirm:true, recursive?}。默认只合直接子卡;recursive:true 合整棵子树。dry-run 列 willMerge[],先念给用户听。合不了的原样留树(notMergedCount);摘要卡/子脑图根卡自动跳过(skipped)。整组可撤销。注意这是合并(对方消失),不是链接。
改标题 POST
Body {text, expectedPrefix(当前值前 32 字,为空传 ""), confirm:true, markdown?}。改写/删除前展示原文→改后获同意;编辑会话前打快照。exam-general×block 下答案卡标题可能被归一,submit 后对 receipt,须保留的用此接口补回(不受归一限制)。