Skip to main content
POST
/
api
/
v1
/
books
/
import
Import books
curl --request POST \
  --url https://demo.komga.org/api/v1/books/import \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "books": [
    {
      "seriesId": "<string>",
      "sourceFile": "<string>",
      "destinationName": "<string>",
      "upgradeBookId": "<string>"
    }
  ],
  "copyMode": "MOVE"
}
'
{
  "violations": [
    {
      "fieldName": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
books
object[]
required
copyMode
enum<string>
required
Available options:
MOVE,
COPY,
HARDLINK

Response

Accepted