TV shows

Change many episodes at once

POST/tv/episodes/bulk/

write Change: creates or edits. Scopes

One action over the episodes picked by ids, or every episode of a season or series. activate, deactivate and delete are done at once. detach (remove their files), replicate (copy them to server) and remove_replica (remove server's copies) run in the background: 202.

Body

  • actionstringrequired
    • activate - activate
    • deactivate - deactivate
    • delete - delete
    • detach - detach
    • replicate - replicate
    • remove_replica - remove_replica

    One of: "activate" "deactivate" "delete" "detach" "replicate" "remove_replica"

  • idsstring (uuid)[]
  • seriesstring (uuid)
  • seasonstring (uuid)
  • serverstring (uuid)

Response

200 OK

  • updatedinteger

    Episodes activated or deactivated.

  • deletedinteger

202 OK

  • queuedintegerrequired

    Episodes with a file, queued for the action.

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.
  • 429 Slow down: wait the seconds in the Retry-After header, then try again.

What each error means