Providers

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

  • idintegerrequired

    The provider id.

Response

202 OK

  • syncingbooleanrequired

    Nothing was waiting: a sync looks for what is new first.

  • importobjectrequiredcan be null

    The import started.

    • idstring (uuid)required
    • statusstringrequired

      pending, running, completed, failed or cancelled.

    • phasestringrequired
    • doneintegerrequired
    • totalintegerrequired
    • countsobjectrequired
    • messagestringrequired
    • created_atstring (date-time)required
    • started_atstring (date-time)requiredcan be null
    • finished_atstring (date-time)requiredcan be null
    • updated_atstring (date-time)required
    • triggerstringrequired
      • schedule - On schedule
      • manual - Sync now

      One of: "schedule" "manual"

    • errorsobject[]required

      The 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.

What each error means