Add title
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 An access token issued by the xeonr identity provider.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 128Which library it belongs in. Created if this server does not have one of that kind, exactly as adding a library path does.
"LIBRARY_CATEGORY_UNSPECIFIED" | "LIBRARY_CATEGORY_MOVIE" | "LIBRARY_CATEGORY_TV" | "LIBRARY_CATEGORY_ANIME" | "LIBRARY_CATEGORY_OTHER" | "LIBRARY_CATEGORY_ANIME_FILM"The record to build it from, as SearchMetadata returned it.
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.
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.
"SERIES_MONITOR_MODE_UNSPECIFIED" | "SERIES_MONITOR_MODE_NONE" | "SERIES_MONITOR_MODE_FUTURE" | "SERIES_MONITOR_MODE_MISSING"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]]"
}xmb.api.v1.ContentService
ContentService is the operator's view of what a server holds.
Remove a title, season or episode POST
Removes a whole title, one season (`season_number`), or one episode (`season_number` with `episode_uuid` or `episode_number`, not both) from the server's library. An exclusion is recorded at the same level so a later scan does not rebuild it from the files; a removed title is listed by `ListRemovedSeries` and can be restored. Watch progress tied only to the removed episodes is deleted. With `delete_files`, every available file in the selection is first deleted from its hub through the same guarded operation as `DeleteMediaFile`. The purge is refused when a file also belongs to episodes outside the selection, is shared with another server, or sits on another server's hub (`PERMISSION_DENIED`). If it stops partway, the error says how many files were deleted and the library entry stays so the call can be retried. `files_deleted` counts the files the hubs removed. Refused with `FAILED_PRECONDITION` while the title has an open request, an active download, a playback in progress or an active offline download, or when a selected file has not been fingerprinted. `INVALID_ARGUMENT` for an episode without a season, both episode selectors, or negative numbers. Requires an administrator of the server. Audited as `content.deleted`. **Required scopes:** `xmb:admin`