AniBTWiki
公開 API

釋出番劇資源

POST /api/releases/publish —— 字幕組用 API Key 釋出種子。

POST
/api/releases/publish

授權

授權Bearer <token>

字幕组 API Key。Authorization: Bearer <KEY>。与 X-API-Key 二选一,Bearer 优先。 Key scope:releases:publish、releases:delete、releases:sync:read,至少选一个。

位置: header

請求主體

TypeScript 定義

在 TypeScript 中使用 request body 型別。

回應主體

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/releases/publish" \  -H "Content-Type: application/json" \  -d '{    "animeIdType": "bgm",    "animeId": "string",    "title": "string",    "magnetBase64": "string",    "torrentStorageId": "string"  }'

{  "ok": true,  "result": {    "releaseId": "rel_example",    "revision": 1,    "torrentObjectId": "obj_example"  }}