mnapis

提交导入(commit)

Body {targetParentNoteId?, withBlank?, excerptMode?:child|link, resultMarkdown?(仅跨设备)}。无 confirm 门,发即真执行。返回 {rootNoteId, version, preImportSnapshotId(存好,USER_EDITS_PRESENT 时带 force:true 才覆盖), receipt, parsed{headings,importedCards,wikilinks,excerptsTotal,excerptsAnchored,failedExcerpts[]}, warnings, excerptStatsTruncated?, blankInsertion?}。headings≠importedCards 即丢卡;excerptsAnchored 不等即有未定位摘录(no_match 多为改写原文)。并发重复提交 409 SUBMIT_IN_FLIGHT。

POST
/bundles/{id}/submit

Body {targetParentNoteId?, withBlank?, excerptMode?:child|link, resultMarkdown?(仅跨设备)}。无 confirm 门,发即真执行。返回 {rootNoteId, version, preImportSnapshotId(存好,USER_EDITS_PRESENT 时带 force:true 才覆盖), receipt, parsed{headings,importedCards,wikilinks,excerptsTotal,excerptsAnchored,failedExcerpts[]}, warnings, excerptStatsTruncated?, blankInsertion?}。headings≠importedCards 即丢卡;excerptsAnchored 不等即有未定位摘录(no_match 多为改写原文)。并发重复提交 409 SUBMIT_IN_FLIGHT。

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

id*string

任务包 bundleId

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/bundles/string/submit" \  -H "Content-Type: application/json" \  -d '{}'
Empty