Upload a playlist to import
POST
/streams/m3u-imports/write Change: creates or edits. Scopes
Step one of an import: send the M3U file (playlist_file) or its text (playlist_text). The panel reads it in the background: poll the import until status is parsed, then choose its groups and options with start.
Body
Sent as multipart/form-data.
playlist_filestring (binary)playlist_textstringfilenamestring
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.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.