Add a provider to a playlist
POST
/editor/playlists/{pid}/providers/write Change: creates or edits. Scopes
url is the address its streams start with; param1 and param2 are its login (username and password, key, MAC address…, by type). An M3U address provider may also have source_url, the address of its list.
Path parameters
pidstring (uuid)required
Body
typestringrequiredxtream- A provider login: server, username and passwordm3u- An M3U addressfile- An M3U fileauth- An auth key and a profileapollo- A stream API login: username and passwordwatch- A watch keyxui_mac- A MAC addresstoken- A token
One of:
"xtream""m3u""file""auth""apollo""watch""xui_mac""token"urlstringrequiredparam1stringparam2stringlabelstringsource_urlstring
Response
201 OK
idintegerrequiredtypestringrequiredxtream- A provider login: server, username and passwordm3u- An M3U addressfile- An M3U fileauth- An auth key and a profileapollo- A stream API login: username and passwordwatch- A watch keyxui_mac- A MAC addresstoken- A token
One of:
"xtream""m3u""file""auth""apollo""watch""xui_mac""token"urlstringrequiredThe address its streams start with.
param1stringrequiredUsername, key or MAC address, by type.
has_param2booleanrequiredWhether a password is set (it is never shown).
labelstringrequiredsource_urlbooleanrequiredWhether an M3U address provider has its own list address.
sourcestringrequiredThe list address, with its secrets hidden ('' when none).
expirystring (date-time)requiredcan be nullThe provider line's end date, when known.
max_connectionsintegerrequiredcan be nullstreamsintegerrequiredEntries that come from it.
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.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.