Fill a TV show from TMDB
POST
/tv/series/{id}/tmdb-sync/write Change: creates or edits. Scopes
Creates or updates every season and episode of the show from TMDB, each with its own details, in the background. seasons limits it to some season numbers; include_specials adds season 0. Answers 202 with the import, to follow on GET /tv/imports/{id}/. 400 when the show has no TMDB id or no TMDB key is set.
Path parameters
idstring (uuid)requiredThe TV show's id.
Body
seasonsinteger[]include_specialsbooleanDefault:
false
Response
202 OK
idstring (uuid)requiredread-onlyseriesstring (uuid)requiredread-onlyseries_namestringrequiredread-onlykindstringrequiredread-onlystatusstringrequiredread-onlyoptionsanyrequiredread-onlyWhat the operator chose: delivery, node, bucket, seasons to sync, …
itemsanyrequiredread-onlyFor a file import, one entry per file: where it is, which season and episode it is, and — once applied — the episode it landed on and what happened.
totalintegerrequiredread-onlydoneintegerrequiredread-onlyfailedintegerrequiredread-onlymessagestringrequiredread-onlyerrorsanyrequiredread-onlyThe first problems met, each with the item it concerns. Bounded.
created_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-onlystarted_atstring (date-time)requiredread-onlycan be nullfinished_atstring (date-time)requiredread-onlycan be null
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 404 Nothing with this id, or nothing the account can see.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.