Match streams to provider channels
POST
/streams/providers/links/match/write Change: creates or edits. Scopes
Proposes a channel for each stream chosen, of one provider or any: the channel its sources play, else the channel of the same name, with whether linking would rename it. Nothing is saved: send the pairs you keep to "Link streams to provider channels". The totals count every stream; the first 2,000 pairs are listed. Streams are chosen by stream_ids, or by filter (the stream list's own filters, {} for every stream) less exclude. Panel operators who may change streams.
Body
stream_idsstring (uuid)[]filterobjectexcludestring (uuid)[]providerintegercan be null
Response
200 OK
countintegerrequiredStreams with a proposal.
by_sourceintegerrequiredambiguousintegerrequiredStreams whose sources play more than one channel.
by_nameintegerrequiredpairs_totalintegerrequiredname_differsintegerrequiredwill_renameintegerrequiredcappedbooleanrequiredMore pairs than are listed.
pairsobject[]requiredstreamstring (uuid)requiredstream_namestringrequiredproviderintegerrequiredprovider_namestringrequireditem_idstringrequireditem_namestringrequiredwhystringrequiredsource- sourcename- name
One of:
"source""name"source_orderintegerrequiredcan be nullambiguousbooleanrequiredreplacesbooleanrequiredIt follows another channel now.
name_differsbooleanrequiredwill_renamebooleanrequired
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.