POST v1/channels
Request Information
URI Parameters
None.
Body Parameters
ChannelResource| Name | Description | Type | Additional information |
|---|---|---|---|
| Channel | ChannelDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"channel": {
"id": 1,
"name": "sample string 2",
"primaryLocation": 1,
"primaryOutput": 1,
"interstitialDwell": 1,
"liveStreams": [
1,
2
],
"channelContactInfo": 3,
"automationOverriden": true,
"brandingConfig": "sample string 5",
"squeezeBackEnabled": true,
"squeezeBackChannel": 1,
"squeezeBackBlock": 1
}
}
application/xml, text/xml
Sample:
<Resources xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.DTOs">
<Channel>
<AutomationOverriden>true</AutomationOverriden>
<BrandingConfig>sample string 5</BrandingConfig>
<ChannelContactInfo>3</ChannelContactInfo>
<Id>1</Id>
<InterstitialDwell>1</InterstitialDwell>
<LiveStreams xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</LiveStreams>
<Name>sample string 2</Name>
<PrimaryLocation>1</PrimaryLocation>
<PrimaryOutput>1</PrimaryOutput>
<SqueezeBackBlock>1</SqueezeBackBlock>
<SqueezeBackChannel>1</SqueezeBackChannel>
<SqueezeBackEnabled>true</SqueezeBackEnabled>
</Channel>
</Resources>
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |