Copy rows to another playlist
/editor/playlists/{pid}/entries/{kind}/to-playlist/write Change: creates or edits. Scopes
Copies rows into category (or a new_category) of another of your playlists (playlist), TV shows with their episodes; with keep: false the originals go to the recycle bin. Rows the other playlist already has are skipped, and a TV show it already has gets the new episodes.
Path parameters
kindstringrequiredWhich list of the playlist:
live(channels),movie(movies) orseries(TV shows).One of:
"live""movie""series"pidstring (uuid)requiredThe playlist's id.
Body
idsinteger[]requiredcategoryintegernew_categorystringplayliststring (uuid)requiredkeepbooleanDefault:
true
Response
200 OK
changeobjectrequiredcan be nullThe change it made in the history; null when nothing changed.
idintegerrequiredseqintegerrequiredIts place in the playlist's history.
labelstringrequiredWhat it did, in words, e.g. "Renamed 12 channels".
operationstringrequiredThe kind of edit, e.g.
save,rename,move,delete,purge,sort,tool:replace,undo.kindstringrequiredThe list it changed:
live,movieorseries; empty when it was not one list.countintegerrequiredHow many rows it changed.
undoablebooleanrequiredWhether it can still be undone or reverted.
undonebooleanrequiredWhether it is undone (redo brings it back).
created_atstring (date-time)required
versionintegerrequiredThe playlist's version after the edit.
rowsany[][]requiredcan be nullThe rows it changed, as the grid lists them; null when there are too many to send: load the list again. Each row is an array of values in this order: id, category, name, source_name, url, logo, epg_id, epg_shift, number, catchup_days, tmdb_id, rating, hidden, sync_name, deleted_at, created_at, updated_at, provider, episodes.
categoriesobject[]requiredThe categories it changed.
idintegerrequirednamestringrequiredsource_namestringrequiredIts name at the provider ('' for one made in the editor).
positionintegerrequiredCategories are listed by position.
hiddenbooleanrequiredHidden from the playlist players get.
sync_namebooleanrequiredTakes the provider's name again at each sync.
deleted_atstring (date-time)requiredcan be nullWhen it went to the recycle bin; null when it is not there.
countintegerrequiredHow many rows it shows.
removedinteger[]requiredIds of rows removed for good.
createdintegerrequiredCopies made.
skippedintegerrequiredRows left out: already there.
messagestringrequiredWhat it did, in a sentence to show.
mergedintegerrequiredTV shows the other playlist already had, which got the new episodes.
episodesintegerrequiredEpisodes added to those TV shows.
targetobjectrequiredidstring (uuid)requiredThe other playlist's id.
versionintegerrequiredIts version after the copy.
changeintegerrequiredcan be nullThe change made in its history.
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.