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

Add title

POST
/xmb.api.v1.ContentService/AddSeries

Creates a title in a library from a provider record. Its episodes start missing; files matched later attach to 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
Length1 <= length <= 128
category?not unknown

Which library it belongs in. Created if this server does not have one of that kind, exactly as adding a library path does.

Value in"LIBRARY_CATEGORY_UNSPECIFIED" | "LIBRARY_CATEGORY_MOVIE" | "LIBRARY_CATEGORY_TV" | "LIBRARY_CATEGORY_ANIME" | "LIBRARY_CATEGORY_OTHER" | "LIBRARY_CATEGORY_ANIME_FILM"
record*

The record to build it from, as SearchMetadata returned it.

libraryPathUuid?string

Where its files will go, as a LibraryPath uuid.

ASKED AT IMPORT, because this is the moment somebody knows the answer and the only moment they are thinking about it. A title added without one is a title the searcher will refuse to grab for, which is a worse thing to discover a week later than a question to answer now.

Optional on the wire: a server with exactly one library path does not need asking, and one with none cannot answer yet.

monitorMode?string

Whether to monitor it, chosen at the moment of adding.

Asked here rather than defaulted, because it is a standing instruction to download things nobody has specifically requested — and the person adding the title is the one with the context to answer.

MISSING IS REFUSED on a title whose provider gave no episode list. That combination produces a library showing gaps the searcher can never act on, silently, with no problem row anywhere: there are no episode rows to be aired-but-unavailable. Unspecified means none.

Value in"SERIES_MONITOR_MODE_UNSPECIFIED" | "SERIES_MONITOR_MODE_NONE" | "SERIES_MONITOR_MODE_FUTURE" | "SERIES_MONITOR_MODE_MISSING"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.ContentService/AddSeries" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{    "record": "map[provider:tvdb providerId:371980]"  }'
{
  "series": "map[contentRating:TV-MA effectiveProfileName:HD-1080p extraCount:4 fileCount:12 firstAired:2022-02-18T02:00:00Z genres:[Drama Science Fiction] includeExtras:false libraryPathUuid:b6d8f0a2-4c6e-4a8b-9d1f-3e5a7c9b1d4f lockedFields:[SERIES_FIELD_SORT_TITLE] monitorMode:SERIES_MONITOR_MODE_FUTURE overview:Mark leads a team of office workers whose memories have been surgically divided between their work and personal lives. record:map[provider:tvdb providerId:371980] seasons:[map[counts:map[aired:19 available:12 missing:7 queued:1 unaired:3 wanted:19] requestedCount:0 seasonNumber:2 title:Season 2 year:2025]] sizeBytes:51539607552 status:Continuing studios:[Fifth Season] summary:map[addedAt:2026-09-14T20:05:00Z category:LIBRARY_CATEGORY_TV counts:map[aired:19 available:12 missing:7 queued:1 unaired:3 wanted:19] effectiveProfileName:HD-1080p libraryPathUuid:b6d8f0a2-4c6e-4a8b-9d1f-3e5a7c9b1d4f librarySlug:tv libraryUuid:7a1c3e5f-9b2d-4f6a-8c0e-1d3f5a7b9c2e matchState:SERIES_MATCH_STATE_MATCHED monitorMode:SERIES_MONITOR_MODE_FUTURE networks:[Apple TV+] posterUrl:https://artwork.thetvdb.com/banners/v4/series/371980/posters/62d7b5e9.jpg seasonCount:2 sortTitle:Severance title:Severance uuid:5f0c2a8e-3b1d-4c7e-9a62-8d4b1e7f3c20 year:2022]]"
}