mnapis

给学习集加文档

Body {bookmd5, confirm:true}。文档须已在资料库。首加成主文档(becameMainDocument),再加为 addedToBooklist;重复加幂等 alreadyPresent。

POST
/study-sets/{id}/documents

Body {bookmd5, confirm:true}。文档须已在资料库。首加成主文档(becameMainDocument),再加为 addedToBooklist;重复加幂等 alreadyPresent。

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

id*string

学习集 topicid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/study-sets/string/documents" \  -H "Content-Type: application/json" \  -d '{    "bookmd5": "string",    "confirm": true  }'
Empty