xmb.api.v1.TaskService
TaskService exposes the background task subsystem to administrators.
postStop a task run
Stops a task. A queued run is removed immediately; a running one is asked to stop and does so at its next opportunity. **Required scopes:** `xmb:admin`
postGet task overview
Returns running and queued tasks with their progress, a short window of recent runs, and queue diagnostics. Bounded in size so it can be polled while work is in flight. **Required scopes:** `xmb:admin`
postGet task run
Returns a single task run and the state of each step in it. **Required scopes:** `xmb:admin`
postList scheduled tasks
Returns the background tasks this server runs, with their schedules and most recent outcomes. Schedules are set in the server's configuration and cannot be changed through the API. **Required scopes:** `xmb:admin`
postList task run problems
Returns the specific items a task run could not process, such as files it could not read. A run may succeed overall and still report these. **Required scopes:** `xmb:admin`
postList task run logs
Returns a task run's log in order. Pass the previous response's cursor as after_id to fetch only what is new. **Required scopes:** `xmb:admin`
postList task runs
Returns finished task runs, newest first. History is kept for a fixed period and removed after that by the server's own housekeeping task. **Required scopes:** `xmb:admin`
postRun task now
Queues a task immediately. If another run of the same task is already going, this one waits for it to finish rather than running alongside it. **Required scopes:** `xmb:admin`
Get stat series POST
Returns time series for one hub, grabber or the server itself — resource, network, and playback metrics — at the storage resolution matching the range. **Required scopes:** `xmb:admin`
Stop a task run POST
Stops a task. A queued run is removed immediately; a running one is asked to stop and does so at its next opportunity. **Required scopes:** `xmb:admin`