Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.LibraryService

Rescan library

POST
/xmb.api.v1.LibraryService/RescanLibrary

Queues a scan of the server's hubs. A scan already running for the server is waited on rather than duplicated.

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
Length1 <= length <= 128
full?boolean

Ignore the incremental gates and re-read everything. Slower by a lot; the reason to reach for it is a suspicion that the index and the disk disagree.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.LibraryService/RescanLibrary" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "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]"
}