Add a guide source
POST
/epg/sources/write Change: creates or edits. Scopes
Adds an XMLTV address (url, http or https); name defaults to its host. It is imported on the next round. Countries are added with "Choose the guide countries". Panel operators only.
Body
namestringurlstring (uri)is_activebooleanpriorityintegerWhen two sources carry the same channel, the higher priority one supplies its programmes.
Response
201 OK
idintegerrequiredread-onlykindstringrequiredread-onlynamestringcountrystringrequiredread-onlyurlstring (uri)is_activebooleanpriorityintegerWhen two sources carry the same channel, the higher priority one supplies its programmes.
statusstringrequiredread-onlylast_checked_atstring (date-time)requiredread-onlycan be nulllast_imported_atstring (date-time)requiredread-onlycan be nulllast_errorstringrequiredread-onlychannels_countintegerrequiredread-onlyprogrammes_countintegerrequiredread-onlyupdated_atstring (date-time)requiredread-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.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.