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
modestringrequiredsql- sqlpython- python
One of:
"sql""python"providerintegerrequiredkindsstring[]One of:
"live""movie"Default:
["live"]fieldsstring[]One of:
"name""logo""epg""number"Default:
["epg","logo","name"]orderbooleanDefault:
falsebouquetsbooleanDefault:
falseremove_hiddenbooleanDefault:
falsedbobject
Response
200 OK
filenamestringrequiredcontentstringrequiredThe SQL statements or the Python script.
countintegerrequiredStreams it updates.
notesstring[]requiredWhat 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.