mnapis

合并分支

Body {confirm:true, recursive?}。默认只合直接子卡;recursive:true 合整棵子树。dry-run 列 willMerge[],先念给用户听。合不了的原样留树(notMergedCount);摘要卡/子脑图根卡自动跳过(skipped)。整组可撤销。注意这是合并(对方消失),不是链接。

POST
/notes/{id}/merge-branch

Body {confirm:true, recursive?}。默认只合直接子卡;recursive:true 合整棵子树。dry-run 列 willMerge[],先念给用户听。合不了的原样留树(notMergedCount);摘要卡/子脑图根卡自动跳过(skipped)。整组可撤销。注意这是合并(对方消失),不是链接。

Authorization

bearerAuth
AuthorizationBearer <token>

安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。

In: header

Path Parameters

id*string

卡片 noteid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/notes/string/merge-branch" \  -H "Content-Type: application/json" \  -d '{    "confirm": true  }'
Empty