Update many entries at once
PATCH
/editor/api/v1/playlists/{pid}/streams/{kind}/Called with a playlist editor API token. How
Changes up to 5,000 entries of one kind in one edit you can undo: each item gives an entry id and the fields to change. Answers the changed rows.
Path parameters
kindstringrequiredlive(channels),movie(movies) orseries(TV shows).One of:
"live""movie""series"pidstring (uuid)required
Headers
X-Token-PasswordstringThe token's own password, when it was made with one.
Body
itemsobject[]idintegerrequirednamestringurlstringlogostringepg_idstringepg_shiftstring (decimal)numberintegercatchup_daysintegertmdb_idintegercan be nullratingstring (decimal)can be nullhiddenbooleansync_namebooleancategoryinteger
Response
200 OK
changeobjectrequiredcan be nullThe history record this edit made; null when nothing changed.
idintegerrequiredseqintegerrequiredIts place in the playlist's history.
labelstringrequiredWhat was done, in words.
operationstringrequiredcountintegerrequiredHow many entries it changed.
undoablebooleanrequiredcreated_atstring (date-time)required
versionintegerrequiredThe playlist's version after the edit.
rowsany[][]requiredThe changed entries, each a list 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.
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.