删除评论
Body {expectedPrefix, confirm:true}。index 语义同改写。
Body {expectedPrefix, confirm:true}。index 语义同改写。
Authorization
bearerAuth AuthorizationBearer <token>
安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。
In: header
Path Parameters
id*string
卡片 noteid
index*string
评论序号 1..N
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/notes/string/comments/string/delete" \ -H "Content-Type: application/json" \ -d '{ "confirm": true }'Empty
写卡片 hashtag POST
Body {noteIds(≤200), operation:add|remove|replace, hashtags(完整叶路径,如 #医学/心血管/心衰), includeDescendants?(仅 remove), confirm:true}。禁止用 text 接口伪造标签(422 HASHTAG_ROUTE_REQUIRED)。replace 空数组=清空(须展示获同意)。整批一撤销组,persisted:true 才成功。
改写评论 POST
Body {text, expectedPrefix(前 32 字), confirm:true}。index 取 batch-get texts[].index 的 1..N(0 为卡正文,传 0 422)。须先读最新,409 COMMENT_CHANGED 重读再来。