Start a playlist import
/streams/m3u-imports/{id}/start/write Change: creates or edits. Scopes
Step two: the groups to import (groups, as named in group_summary; "" for channels without a group) and what to apply to the streams it adds. The import runs in the background; poll it for its progress. GET /streams/m3u-imports/options/ lists the choices and defaults.
Path parameters
idstring (uuid)requiredThe playlist import's id.
Body
groupsstring[]requiredcategory_modestringauto: a category per group, reusing one of the same name;existing: all incategory.auto- autoexisting- existing
Default:
"auto"categorystring (uuid)extra_categoriesstring (uuid)[]fallback_categorystring (uuid)For channels without a group, with
category_mode: auto.conflict_modestringWhen a stream of the same name and category exists.
skip- Skip existingupdate- Update existingsuffix- Create with a numbered suffix
Default:
"skip"is_on_demandbooleanDefault:
falseis_activebooleanDefault:
trueallow_passthroughbooleanDefault:
truefollow_providersbooleanStreams take the name, logo or guide of a provider channel with the same source.
Default:
truetranscoding_profilestring (uuid)streaming_enginestringDefault:
"gstreamer"bouquetsstring (uuid)[]routing_modestringDefault:
"auto"pinned_primarystring (uuid)pinned_backup_1string (uuid)pinned_backup_2string (uuid)auto_eligible_serversstring (uuid)[]sort_order_startintegerNumbers from here; blank: after every stream.
Response
202 OK
idstring (uuid)requiredread-onlyfilenamestringrequiredread-onlystatusstringrequiredread-onlygroup_summaryanyrequiredread-only[[group-title, channel count], …] as parsed from the upload.
selected_groupsanyrequiredread-onlyoptionsanyrequiredread-onlyThe settings applied to every stream this import creates.
totalintegerrequiredread-onlycreatedintegerrequiredread-onlyupdatedintegerrequiredread-onlyskippedintegerrequiredread-onlyfailed_countintegerrequiredread-onlystarted_countintegerrequiredread-onlytotal_channelsintegerrequiredread-onlyChannels in the playlist, before any group is left out.
processedintegerrequiredread-onlyChannels dealt with so far, whatever was done with them.
start_totalintegerrequiredread-onlyStreams waiting to be started a few at a time;
started_countof them have started.is_finishedbooleanrequiredread-onlymessagestringrequiredread-onlywarningsanyrequiredread-onlystreams_countintegerrequiredread-onlyStreams that still carry this import's stamp — created or updated by it, and not deleted since.
created_by_usernamestringrequiredread-onlycreated_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-only
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.
- 409
- 429 Slow down: wait the seconds in the Retry-After header, then try again.