Import a provider's movies and TV shows now
POST
/streams/providers/{id}/vod-import/write Change: creates or edits. Scopes
Imports what waits. With nothing waiting, a sync looks for what is new first and imports it. Importing movies or TV shows must be on for the provider. Panel operators only.
Path parameters
idintegerrequiredThe provider id.
Response
202 OK
syncingbooleanrequiredNothing was waiting: a sync looks for what is new first.
importobjectrequiredcan be nullThe import started.
idstring (uuid)requiredstatusstringrequiredpending, running, completed, failed or cancelled.
phasestringrequireddoneintegerrequiredtotalintegerrequiredcountsobjectrequiredmessagestringrequiredcreated_atstring (date-time)requiredstarted_atstring (date-time)requiredcan be nullfinished_atstring (date-time)requiredcan be nullupdated_atstring (date-time)requiredtriggerstringrequiredschedule- On schedulemanual- Sync now
One of:
"schedule""manual"errorsobject[]requiredThe first errors, as
{name, error}.
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.