加复习卡
Body {cards:[{sourceNoteId(必填), question?, questionContentId?, title?}], confirm:true} ≤50/次,整批一撤销组。question/questionContentId 互斥;都不给走 autoQuestionIndex。{{挖空}} 写 question。同一源卡重复加为更新并重排到期(updatedExisting)。组员 id 归一到宿主(resolvedNoteId)。删单张复习卡用 POST /notes/delete(单向联动:删复习卡不影响源卡,删源卡级联删复习卡)。
Body {cards:[{sourceNoteId(必填), question?, questionContentId?, title?}], confirm:true} ≤50/次,整批一撤销组。question/questionContentId 互斥;都不给走 autoQuestionIndex。{{挖空}} 写 question。同一源卡重复加为更新并重排到期(updatedExisting)。组员 id 归一到宿主(resolvedNoteId)。删单张复习卡用 POST /notes/delete(单向联动:删复习卡不影响源卡,删源卡级联删复习卡)。
Authorization
bearerAuth 安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。
In: header
Path Parameters
复习卡组 deckId
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/decks/string/cards" \ -H "Content-Type: application/json" \ -d '{ "cards": [ {} ], "confirm": true }'