Update a provider
/streams/providers/{id}/write Change: creates or edits. Scopes
Changes only the fields sent. An empty password keeps the saved one. A new login or link format syncs it again, and the streams that follow it get the new links. Panel operators only.
Path parameters
idintegerrequiredThe provider id.
Body
namestringkindstringxtream- A provider login: server, username and passwordm3u- An M3U address
One of:
"xtream""m3u"usernamestringis_enabledbooleanOff: the provider is neither checked nor synced.
sync_every_minutesintegeruse_livebooleanIts live channels are offered for streams to follow. Off: a provider for its films or TV shows only.
import_moviesbooleanAfter each sync, the provider's new films are added to Films.
import_seriesbooleanAfter each sync, the provider's new shows and episodes are added to TV shows.
urlstringpasswordstringextra_hostsstring[]link_formatstringts- MPEG-TS (.ts)m3u8- HLS (.m3u8)
One of:
"ts""m3u8"sync_namesbooleanStreams that follow a channel take its name whenever the provider's differs.
sync_logosbooleanStreams that follow a channel take its logo.
sync_epg_idsbooleanStreams that follow a channel take its guide id, when the panel's guide has it.
keep_historybooleanKeep a list of past syncs (the last 50). Off saves space: only the last result is kept.
vod_categoriesstringWhere imported titles are filed: under the provider's own categories, under their TMDB genres, or as your mapping says.
playlist- The provider's categoriestmdb- TMDB genrescustom- My own mapping
vod_category_mapanyvod_bouquetsstring (uuid)[]vod_series_bouquetsstring (uuid)[]vod_deliverystringStraight from the provider: the player is sent to the provider, which costs you no bandwidth but shows the player its address. Through a streaming server: a server passes the film through, hiding the provider, and every byte crosses it — always the one you choose, or any healthy one the panel picks (load balanced).
redirect- Straight from the providerproxy- Through one streaming serverbalanced- Through any streaming server (load balanced)
vod_proxy_serverstring (uuid)can be nullvod_tmdbbooleanFill posters, plots, cast and ratings from TMDB (the key in Settings → VOD).
spareintegercan be null
Response
200 OK
idintegerrequiredread-onlynamestringrequiredkindstringxtream- A provider login: server, username and passwordm3u- An M3U address
One of:
"xtream""m3u"addressstringrequiredread-onlyusernamestringis_enabledbooleanOff: the provider is neither checked nor synced.
statusstringrequiredread-onlystatus_detailstringrequiredread-onlychecked_atstring (date-time)requiredread-onlycan be nullconnectionsobjectrequiredread-onlyactiveintegerrequiredcan be nullConnections in use, as the provider said.
maxintegerrequiredcan be nullConnections the line allows.
oursintegerrequiredConnections this panel's servers hold on it now.
expires_atstring (date-time)requiredread-onlycan be nullexpires_knownbooleanrequiredread-onlyWhether
expires_atis what the provider said (null: never expires) rather than nothing known: it refused the login, could not be reached, or is an M3U, which says nothing about an expiry.is_trialbooleanrequiredread-onlyaccount_created_atstring (date-time)requiredread-onlycan be nullcountsobjectrequiredread-onlyliveintegerrequiredChannels.
moviesintegerrequiredseriesintegerrequiredTV shows.
sync_every_minutesintegerlast_sync_started_atstring (date-time)requiredread-onlycan be nulllast_sync_atstring (date-time)requiredread-onlycan be nulllast_sync_okbooleanrequiredread-onlycan be nulllast_sync_summaryanyrequiredread-onlynext_sync_atstring (date-time)requiredread-onlycan be nullsyncingbooleanrequiredread-onlylinked_streamsintegerrequiredread-onlyDefault:
0gone_linksintegerrequiredread-onlyDefault:
0use_livebooleanIts live channels are offered for streams to follow. Off: a provider for its films or TV shows only.
import_moviesbooleanAfter each sync, the provider's new films are added to Films.
import_seriesbooleanAfter each sync, the provider's new shows and episodes are added to TV shows.
urlstringrequiredhas_passwordbooleanrequiredread-onlyextra_hostsstring[]link_formatstringts- MPEG-TS (.ts)m3u8- HLS (.m3u8)
One of:
"ts""m3u8"sync_namesbooleanStreams that follow a channel take its name whenever the provider's differs.
sync_logosbooleanStreams that follow a channel take its logo.
sync_epg_idsbooleanStreams that follow a channel take its guide id, when the panel's guide has it.
keep_historybooleanKeep a list of past syncs (the last 50). Off saves space: only the last result is kept.
vod_categoriesstringWhere imported titles are filed: under the provider's own categories, under their TMDB genres, or as your mapping says.
playlist- The provider's categoriestmdb- TMDB genrescustom- My own mapping
vod_category_mapanyvod_bouquetsstring (uuid)[]vod_series_bouquetsstring (uuid)[]vod_deliverystringStraight from the provider: the player is sent to the provider, which costs you no bandwidth but shows the player its address. Through a streaming server: a server passes the film through, hiding the provider, and every byte crosses it — always the one you choose, or any healthy one the panel picks (load balanced).
redirect- Straight from the providerproxy- Through one streaming serverbalanced- Through any streaming server (load balanced)
vod_proxy_serverstring (uuid)can be nullvod_tmdbbooleanFill posters, plots, cast and ratings from TMDB (the key in Settings → VOD).
vodobjectrequiredread-onlywaitingintegerrequiredMovies and episodes waiting to be imported.
importedintegerrequiredskippedintegerrequiredfailedintegerrequiredlastobjectrequiredcan be nullThe last import, if any.
idstring (uuid)requiredstatusstringrequiredpending, running, completed, failed or cancelled.
phasestringrequireddoneintegerrequiredtotalintegerrequiredcountsobjectrequiredmessagestringrequiredcreated_atstring (date-time)requiredstarted_atstring (date-time)requiredcan be nullfinished_atstring (date-time)requiredcan be nullupdated_atstring (date-time)required
spareintegercan be nullspare_namestringrequiredread-only
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.