Playlist editor

Export edits back to the source panel

POST/editor/playlists/{pid}/export-xc/

write Change: creates or edits. Scopes

Writes the playlist's names, logos, guide ids and numbers (fields) back into the panel a provider login (type: "xtream", by provider) comes from: SQL statements to paste (mode: "sql") or a Python script to run on its server (mode: "python", with its database in db). Existing streams are updated, never added.

Path parameters

  • pidstring (uuid)required

Body

  • modestringrequired
    • sql - sql
    • python - python

    One of: "sql" "python"

  • providerintegerrequired
  • kindsstring[]

    One of: "live" "movie"

    Default: ["live"]

  • fieldsstring[]

    One of: "name" "logo" "epg" "number"

    Default: ["epg","logo","name"]

  • orderboolean

    Default: false

  • bouquetsboolean

    Default: false

  • remove_hiddenboolean

    Default: false

  • dbobject

Response

200 OK

  • filenamestringrequired
  • contentstringrequired

    The SQL statements or the Python script.

  • countintegerrequired

    Streams it updates.

  • notesstring[]required

    What to do by hand, if anything.

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