Playlist editor

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

  • typestringrequired
    • xtream - A provider login: server, username and password
    • m3u - An M3U address
    • file - An M3U file
    • auth - An auth key and a profile
    • apollo - A stream API login: username and password
    • watch - A watch key
    • xui_mac - A MAC address
    • token - A token

    One of: "xtream" "m3u" "file" "auth" "apollo" "watch" "xui_mac" "token"

  • urlstringrequired
  • param1string
  • param2string
  • labelstring
  • source_urlstring

Response

201 OK

  • idintegerrequired
  • typestringrequired
    • xtream - A provider login: server, username and password
    • m3u - An M3U address
    • file - An M3U file
    • auth - An auth key and a profile
    • apollo - A stream API login: username and password
    • watch - A watch key
    • xui_mac - A MAC address
    • token - A token

    One of: "xtream" "m3u" "file" "auth" "apollo" "watch" "xui_mac" "token"

  • urlstringrequired

    The address its streams start with.

  • param1stringrequired

    Username, key or MAC address, by type.

  • has_param2booleanrequired

    Whether a password is set (it is never shown).

  • labelstringrequired
  • source_urlbooleanrequired

    Whether an M3U address provider has its own list address.

  • sourcestringrequired

    The list address, with its secrets hidden ('' when none).

  • expirystring (date-time)requiredcan be null

    The provider line's end date, when known.

  • max_connectionsintegerrequiredcan be null
  • streamsintegerrequired

    Entries 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.

What each error means