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
actionstringrequiredactivate- activatedeactivate- deactivatedelete- deletedetach- detachreplicate- replicateremove_replica- remove_replica
One of:
"activate""deactivate""delete""detach""replicate""remove_replica"idsstring (uuid)[]seriesstring (uuid)seasonstring (uuid)serverstring (uuid)
Response
200 OK
updatedintegerEpisodes activated or deactivated.
deletedinteger
202 OK
queuedintegerrequiredEpisodes 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.