Preview changing many streams' sources
/streams/bulk-edit/sources/preview/write Change: creates or edits. Scopes
What a change of sources would do to the selection, writing nothing: how many streams change, which find no match and why, a few before and after, and how many restart. Naming a provider is for accounts that see the whole catalogue. 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)[]
sourcesobjectrequiredHow 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
Response
200 OK
streamsintegerrequiredchangedintegerrequiredsameintegerunmatchedintegerskippedintegerconflictsintegerbyobjectsources_changedintegerrestartsintegerfollowintegerunmatched_streamsobject[]skipped_streamsobject[]conflict_streamsobject[]sampleobject[]checkobjectWith
mode: checkonly.
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.