打开复习卡组
与 study-sets open 语义类似,id 不通用(传错 422 NOT_A_DECK/IS_A_DECK)。异步,事后 /context 对账。
与 study-sets open 语义类似,id 不通用(传错 422 NOT_A_DECK/IS_A_DECK)。异步,事后 /context 对账。
Authorization
bearerAuth AuthorizationBearer <token>
安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。
In: header
Path Parameters
id*string
复习卡组 deckId
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
打开复习卡组(空 body 即可);id 与学习集不通用。
Response Body
curl -X POST "https://example.com/decks/string/open" \ -H "Content-Type: application/json" \ -d '{}'Empty
加复习卡 POST
Body {cards:[{sourceNoteId(必填), question?, questionContentId?, title?}], confirm:true} ≤50/次,整批一撤销组。question/questionContentId 互斥;都不给走 autoQuestionIndex。{{挖空}} 写 question。同一源卡重复加为更新并重排到期(updatedExisting)。组员 id 归一到宿主(resolvedNoteId)。删单张复习卡用 POST /notes/delete(单向联动:删复习卡不影响源卡,删源卡级联删复习卡)。
新建复习卡组 POST
Body {title, confirm:true}。返回 {deckId, isDeck},须校验 isDeck:true。