POST v1/channels

This method requires authentication.

Creates a new Channel.

Request Information

Parameters

NameDescriptionAdditional information
resource New Channel

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "channel": {
    "id": 1,
    "name": "sample string 2",
    "primaryLocation": 1,
    "primaryOutput": 1,
    "interstitialDwell": 1,
    "liveStreams": [
      1,
      2,
      3
    ],
    "publicSite": 1,
    "channelContactInfo": 3,
    "automationOverriden": true
  }
}

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>
    <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>
      <d3p1:int>3</d3p1:int>
    </LiveStreams>
    <Name>sample string 2</Name>
    <PrimaryLocation>1</PrimaryLocation>
    <PrimaryOutput>1</PrimaryOutput>
    <PublicSite>1</PublicSite>
  </Channel>
</Resources>