milmilmilmil
API Reference

Download Rules

Auto-download rules paired with RSS feeds

GET
/api/v1/download-rules

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Response Body

application/json

curl -X GET "https://example.com/api/v1/download-rules"
[  {    "id": "string",    "name": "string",    "filter": "string",    "save_dir": "string",    "enabled": true,    "bangumi_id": 0,    "rss_feed_ids": [      "string"    ],    "created_at": "string"  }]
POST
/api/v1/download-rules

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/download-rules" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "filter": "string",  "save_dir": "string",  "enabled": true,  "bangumi_id": 0,  "rss_feed_ids": [    "string"  ],  "created_at": "string"}
DELETE
/api/v1/download-rules/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

id*string

Response Body

curl -X DELETE "https://example.com/api/v1/download-rules/string"
Empty
PUT
/api/v1/download-rules/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/api/v1/download-rules/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "filter": "string",  "save_dir": "string",  "enabled": true,  "bangumi_id": 0,  "rss_feed_ids": [    "string"  ],  "created_at": "string"}
POST
/api/v1/subscribe

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/v1/subscribe" \  -H "Content-Type: application/json" \  -d '{    "anime_name": "string"  }'
Empty