mnapis

写卡片 hashtag

Body {noteIds(≤200), operation:add|remove|replace, hashtags(完整叶路径,如 #医学/心血管/心衰), includeDescendants?(仅 remove), confirm:true}。禁止用 text 接口伪造标签(422 HASHTAG_ROUTE_REQUIRED)。replace 空数组=清空(须展示获同意)。整批一撤销组,persisted:true 才成功。

POST
/notes/hashtags

Body {noteIds(≤200), operation:add|remove|replace, hashtags(完整叶路径,如 #医学/心血管/心衰), includeDescendants?(仅 remove), confirm:true}。禁止用 text 接口伪造标签(422 HASHTAG_ROUTE_REQUIRED)。replace 空数组=清空(须展示获同意)。整批一撤销组,persisted:true 才成功。

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/notes/hashtags" \  -H "Content-Type: application/json" \  -d '{    "noteIds": [      "string"    ],    "operation": "add",    "hashtags": [      "string"    ],    "confirm": true  }'
Empty