Update a provider
PATCH
/editor/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
Body
urlstringparam1stringparam2stringlabelstring
Response
200 OK
idintegerrequiredtypestringrequiredxtream- A provider login: server, username and passwordm3u- An M3U addressfile- An M3U fileauth- An auth key and a profileapollo- A stream API login: username and passwordwatch- A watch keyxui_mac- A MAC addresstoken- A token
One of:
"xtream""m3u""file""auth""apollo""watch""xui_mac""token"urlstringrequiredThe address its streams start with.
param1stringrequiredUsername, key or MAC address, by type.
has_param2booleanrequiredWhether a password is set (it is never shown).
labelstringrequiredsource_urlbooleanrequiredWhether an M3U address provider has its own list address.
sourcestringrequiredThe list address, with its secrets hidden ('' when none).
expirystring (date-time)requiredcan be nullThe provider line's end date, when known.
max_connectionsintegerrequiredcan be nullstreamsintegerrequiredEntries that come from it.
202 OK
jobstring (uuid)requiredThe 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.