Skip to content

Upload additional book file

POST
/api/v1/books/{bookId}/files
curl --request POST \
--url 'http://127.0.0.1:58259/api/v1/books/1/files?isBook=true&bookType=PDF' \
--header 'Content-Type: multipart/form-data' \
--form file=@file

Upload and attach a new additional file to a specific book.

bookId
required
integer format: int64
isBook
required
boolean
bookType
string
Allowed values: PDF EPUB CBX FB2 MOBI AZW3 AUDIOBOOK
description
string
Media type multipart/form-data
object
file
required
string format: binary

OK

Media type */*
object
id
integer format: int64
bookId
integer format: int64
fileName
string
filePath
string
fileSubPath
string
folderBased
boolean
bookType
string
Allowed values: PDF EPUB CBX FB2 MOBI AZW3 AUDIOBOOK
archiveType
string
Allowed values: ZIP RAR SEVEN_ZIP UNKNOWN
fileSizeKb
integer format: int64
extension
string
description
string
addedOn
string format: date-time
book
boolean