Edit many streams
/streams/bulk-edit/write Change: creates or edits. Scopes
Applies changes to the selection in the background; a key left out leaves that field alone. Streams whose playback changes restart a few at a time. sources is changed on its own, never with other changes. A selection is the streams ticked (ids) or every stream the list filters select (all_matching: true with filters, less exclude).
Body
selectionobjectrequiredThe streams a bulk action applies to: the ones ticked (
ids), or every stream the list filters select (all_matching: truewithfilters, which take the list's query parameters), lessexclude.idsstring (uuid)[]all_matchingbooleanDefault:
falsefiltersobjectexcludestring (uuid)[]
changesobjectrequiredWhat a bulk edit changes. A key left out leaves that field alone.
categories_removenever takes a stream out of its main category (that iscategory).pinned_serversis in order: the first plays the streams, the others take over.categorystring (uuid)categories_addstring (uuid)[]categories_removestring (uuid)[]bouquets_addstring (uuid)[]bouquets_removestring (uuid)[]is_activebooleanis_on_demandbooleanis_directbooleanstreaming_enginestringgstreamer- GStreamerffmpeg- FFmpeg
One of:
"gstreamer""ffmpeg"transcoding_profilestring (uuid)can be nullallow_passthroughbooleanrouting_modestringauto- Auto load-balance (excludes panel)pinned- Pinned (ordered failover)
One of:
"auto""pinned"pinned_serversstring (uuid)[]auto_eligible_serversstring (uuid)[]epgstringauto- autoclear- clear
One of:
"auto""clear"epg_modestringmissing- missingauto- autoall- all
One of:
"missing""auto""all"logostringauto- autoclear- clear
One of:
"auto""clear"logo_modestringmissing- missingauto- auto
One of:
"missing""auto"sourcesobjectHow the sources of the selected streams change.
move: each stream gets the same channel on anotherprovider(only when exactly one matches), replacing its old source, as its main source or as its last backup (place).address: part of each address changes (server, or the login in it).remove: the sources on a provider or line are taken out; a stream is never left without one.check: the sources are read again.modestringrequiredmove- moveaddress- addressremove- removecheck- check
One of:
"move""address""remove""check"providerintegerplacestringDefault:
"replace"replacestringDefault:
"old"followbooleanDefault:
falseold_providerintegercan be nullold_hoststringold_userstringfrom_hoststringto_basestringfrom_userstringto_userstringto_passwordstring
renameobjectOne renaming rule. Every key is optional; at least one must change something.
remove_codebooleanDefault:
falseremove_qualitybooleanDefault:
falseremove_prefixstring[]remove_suffixstring[]replaceobject[]findstringrequiredtostringpatternbooleanDefault:
false
casestringDefault:
"keep"tidybooleanDefault:
trueadd_prefixstringadd_suffixstringstop_name_syncbooleanDefault:
false
sortobjectA sort into categories by name, every rule's
categoryan existing category's id.rulesobject[]requiredmatchstringrequiredstarts- startscontains- containsends- endspattern- pattern
One of:
"starts""contains""ends""pattern"textstringrequiredcategorystring (uuid)required
unlist_oldbooleanDefault:
true
Response
202 The background task editing them.
idstringrequiredkindstringrequiredThe kind of task, e.g.
bulk_edit,bulk_delete,import.kind_labelstringrequiredtitlestringrequiredsubtitlestringrequiredstatestringrequiredqueued,running,waiting,stalled,completed,failedorcancelled.state_labelstringrequiredstatusstringrequiredThe task's own status, before it is grouped into
state.status_labelstringrequiredprogressobjectrequireddoneintegerrequiredcan be nulltotalintegerrequiredcan be nullpercentintegerrequiredcan be null0 to 100, null while unknown.
phasestringrequiredWhat it is doing now, in words; may be empty.
messagestringrequireddetailsobject[]requirederrorsobject[]requiredlinkobjectrequiredcan be nullThe dashboard page about it:
{path, query, label}, or null.actionsstring[]requiredWhat the caller may do with it now:
cancel,resume,retry.created_by_usernamestringrequiredcan be nullcreated_atstring (date-time)requiredstarted_atstring (date-time)requiredcan be nullfinished_atstring (date-time)requiredcan be nullupdated_atstring (date-time)required
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.