milmilmilmil
API 參考

User Preferences

Global and per-series preferences plus backup config

GET
/api/v1/user/preferences

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/user/preferences"
{}
PUT
/api/v1/user/preferences

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 PUT "https://example.com/api/v1/user/preferences" \  -H "Content-Type: application/json" \  -d '{}'
Empty
GET
/api/v1/user/preferences/backup-config

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/user/preferences/backup-config"
[  {}]
PUT
/api/v1/user/preferences/backup-config

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 PUT "https://example.com/api/v1/user/preferences/backup-config" \  -H "Content-Type: application/json" \  -d '{}'
Empty
POST
/api/v1/user/preferences/backup-config/test

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/user/preferences/backup-config/test" \  -H "Content-Type: application/json" \  -d '{}'
{  "ok": true,  "error": "string"}
DELETE
/api/v1/user/preferences/backup-config/{type}

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

type*string

Response Body

curl -X DELETE "https://example.com/api/v1/user/preferences/backup-config/string"
Empty
POST
/api/v1/user/preferences/export

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 POST "https://example.com/api/v1/user/preferences/export"
{}
POST
/api/v1/user/preferences/import

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/user/preferences/import" \  -H "Content-Type: application/json" \  -d '{}'
Empty
GET
/api/v1/user/preferences/series/{seriesId}

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

seriesId*string

Response Body

application/json

curl -X GET "https://example.com/api/v1/user/preferences/series/string"
{}
PUT
/api/v1/user/preferences/series/{seriesId}

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

seriesId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PUT "https://example.com/api/v1/user/preferences/series/string" \  -H "Content-Type: application/json" \  -d '{}'
Empty
POST
/api/v1/user/preferences/sync

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

curl -X POST "https://example.com/api/v1/user/preferences/sync"
Empty
GET
/api/v1/user/preferences/sync/status

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/user/preferences/sync/status"
{}