api:iptv:radiochannel:create
Table of Contents
API : IPTV : Radio Channel : Create
Introduction
This request will create a new radio channel that will be 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 | ||
|---|---|---|---|
| Method | POST | ||
| 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. | |
| url | String | URL to stream the radio channel from. | |
| customer | Id | Id of the reseller (IPTVPRIVATE) or business customer (IPTVBUSINESS) to create the channel for. | |
Query example
{
number: 1,
name 'DR P7 mix',
url: 'http://media.dr.dk/live/p7.m3u8',
customer: '12345678901234567890AAAA'
}
Response
The newly created 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.m3u8', logo: null }
Errors
| Error code | Message | Description |
|---|---|---|
| 409 | number | The channel number is not available |
| 422 | number | The channel number is out of range - only 1-999 is allowed |
| 404 | customer | Customer not found |
| 409 | customer | Customer cannot host common IPTV settings |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/iptv/radiochannel/create.txt · Last modified: 2017/04/27 05:22 by Per Møller