Playlist editor

Update a provider

PATCH/editor/playlists/{pid}/providers/{id}/

write Change: creates or edits. Scopes

A new label is saved at once (200). A new address or login also rewrites every link that comes from the provider, in a background task (202).

Path parameters

  • idintegerrequired
  • pidstring (uuid)required

Body

  • urlstring
  • param1string
  • param2string
  • labelstring

Response

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

202 OK

  • jobstring (uuid)required

    The background task: follow it with GET /editor/jobs/{id}/ (/editor/api/v1/jobs/{id}/ with a token).

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