CreateLibraryRequest
Create library request
Allowed file formats (e.g., ["CBZ", "CBR", "EPUB"])
["CBZ","CBR","EPUB"]Auto-match conditions (JSON object with mode and rules) Controls when auto-matching runs for this library
Book strategy-specific configuration (JSON, mutable after creation)
Book naming strategy (mutable after creation) Options: filename, metadata_first, smart, series_name
Possible values: [filename, metadata_first, smart, series_name, custom]
Default reading direction for books in this library (ltr, rtl, ttb or webtoon)
ltrOptional description
My comic book collectionExcluded path patterns (newline-separated, e.g., ".DS_Store\nThumbs.db")
.DS_Store
Thumbs.dbLibrary name
ComicsNumber strategy-specific configuration (JSON, mutable after creation)
Book number strategy (mutable after creation) Options: file_order, metadata, filename, smart
Possible values: [file_order, metadata, filename, smart]
Filesystem path to the library
/media/comicsScan immediately after creation (not stored in DB)
truescanningConfig object
Scanning configuration
Cron expression for scheduled scans. Accepts standard 5-part Unix cron (e.g., "0 */6 * * *") or 6-part with seconds (e.g., "0 0 */6 * * *"). Stored as provided; normalization happens at scheduler level.
0 */6 * * *IANA timezone for the cron schedule (e.g., "America/Los_Angeles", "Europe/London").
Overrides the server-level scheduler.timezone config for this library.
If not set, falls back to the server default (which itself defaults to UTC).
America/Los_AngelesWhether scheduled scanning is enabled
truePurge soft-deleted books after completing a scan
falseDefault scan mode for scheduled scans ("normal" or "deep")
normalScan library when the application starts
falseStrategy-specific configuration (JSON, immutable after creation)
Series detection strategy (immutable after creation) Options: series_volume, series_volume_chapter, flat, publisher_hierarchy, calibre, custom
Possible values: [series_volume, series_volume_chapter, flat, publisher_hierarchy, calibre, custom]
Title preprocessing rules (JSON array of regex rules) Applied during scan to clean series titles before metadata search
{
"allowedFormats": [
"CBZ",
"CBR",
"EPUB"
],
"bookStrategy": "filename",
"defaultReadingDirection": "ltr",
"description": "My comic book collection",
"excludedPatterns": ".DS_Store\nThumbs.db",
"name": "Comics",
"numberStrategy": "file_order",
"path": "/media/comics",
"scanImmediately": true,
"scanningConfig": {
"cronSchedule": "0 */6 * * *",
"cronTimezone": "America/Los_Angeles",
"enabled": true,
"purgeDeletedOnScan": false,
"scanMode": "normal",
"scanOnStart": false
},
"seriesStrategy": "series_volume"
}