api:iptv:radiochannel:update
Table of Contents
API : IPTV : Radio Channel : Update
Introduction
This request will update a channel that is available to the resellers customer (if reseller and customer has feature IPTVPRIVATE) or to the business customer (if the customer has the feature IPTVBUSINESS).
Request
| URL | https://api.telecomx.dk/iptv/radiochannel/CHANNEL_ID | ||
|---|---|---|---|
| Method | POST | ||
| Params | CHANNEL_ID | Id of the channel to update | |
| Access level | MANAGER or OWNER if customer has feature IPTVBUSINESS RESELLER if customer has IPTVBUSINESS or IPTVPRIVATE ADMIN |
||
| Body | number | Number | Channel number in the list of channels, ex. for direct selection on STB's. Null to auto-select the first available number. |
| name | String | Name of channel. Null to inherit name from base channel. | |
| url | String | URL to stream the radio channel from. | |
As little as a single property can be specified.
Query example
{
url: 'http://media.dr.dk/live/p7/index.m3u8'
}
Response
The updated channel.
| JSON object | ||
|---|---|---|
| _id | Id | Unique id of the radio channel. |
| number | Number | Channel number in the list of channels, ex. for direct selection on STB's. |
| name | String | Name of channel. |
| url | String | URL to stream the radio channel from. |
| logo | Id | Id of channel logo, overrides base channel logo. Null to use base channel logo, if available. |
Note that properties holding no value may be omitted from the object.
Example
{ _id: '12345678901234567890ABCD', number: 1, name 'DR P7 mix', url: 'http://media.dr.dk/live/p7/index.m3u8', logo: null }
Errors
| Error code | Message | Description |
|---|---|---|
| 404 | id | Not found |
| 409 | number | The channel number is not available |
| 422 | number | The channel number is out of range - only 1-999 is allowed |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/iptv/radiochannel/update.txt · Last modified: 2017/04/27 05:23 by Per Møller