API Specificationxmb.api.v1.LibraryService
Add library path
Feeds a library from a folder on a hub, verifying the folder exists before recording it.
Required scopes: xmb:admin
Authorization
BearerAuth AuthorizationBearer <token>
An access token issued by the xeonr identity provider.
In: header
Header Parameters
Connect-Protocol-Version?number
Define the version of the Connect protocol
Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
serverSlug?string
Length
1 <= length <= 128category?not unknown
Which library to feed. The library is created if it does not exist, so a client never has to call EnsureLibrary first.
Value in
"LIBRARY_CATEGORY_UNSPECIFIED" | "LIBRARY_CATEGORY_MOVIE" | "LIBRARY_CATEGORY_TV" | "LIBRARY_CATEGORY_ANIME" | "LIBRARY_CATEGORY_OTHER" | "LIBRARY_CATEGORY_ANIME_FILM"hubUuid?string
Format
uuidpath?string
Folder path relative to the hub's media root. Verified to exist on the hub before the row is written: an unproven path is the seed of a scan that finds nothing and concludes the content is gone.
Length
1 <= length <= 2048[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.LibraryService/AddLibraryPath" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"library": "map[artwork:[map[kind:poster providers:[tmdb tvdb]]] category:LIBRARY_CATEGORY_TV createdAt:2026-03-14T18:02:11Z defaultQualityProfileName:HD 1080p defaultQualityProfileUuid:9a1c3e5f-2b4d-4c6e-8f0a-1b3d5f7a9c2e metadataProviders:[map[enabled:true name:tvdb specialises:true] map[enabled:true name:tmdb specialises:false]] name:TV Shows ord:1 paths:[map[createdAt:2026-03-14T18:02:11Z hubName:Living room NAS hubUuid:5f0c2a9e-8b1d-4c3a-9e2f-7a6b1c4d8e01 path:TV uuid:0d4f8a2b-6c1e-4f3a-9b7d-2e5c8a1f4b6d]] slug:tv subtitles:map[allowForced:true allowHearingImpaired:false allowMachineTranslated:false languages:[en] mode:suggest providers:[map[configured:true displayName:OpenSubtitles enabled:true name:opensubtitles quotaBound:true]] trustedOnly:false] uuid:7b2e9c4d-1a3f-4b5c-8d6e-9f0a1b2c3d4e]",
"path": "map[createdAt:2026-03-14T18:02:11Z hubName:Living room NAS hubUuid:5f0c2a9e-8b1d-4c3a-9e2f-7a6b1c4d8e01 path:TV uuid:0d4f8a2b-6c1e-4f3a-9b7d-2e5c8a1f4b6d]",
"scan": "map[lockKey:library-scan:server:12 queuedAt:2026-10-22T09:30:00Z serverSlug:thompson-home status:TASK_RUN_STATUS_QUEUED taskKey:library.scan taskName:Library scan trigger:TASK_RUN_TRIGGER_MANUAL triggeredBy:luke uuid:1f3b5d7e-9a2c-4e4f-8b6d-0c2e4a6c8e3f]"
}