OpenTV ENTera & OpenTV Platform Documentation

Creating channel lineup links

To create one or more channel lineup links (that is, a link between a channel lineup and one or more editorial channels), send a POST request to:

https://<host>:<port>/metadata/content/v1/channelLineUpLinks

  • Content-Type: application/json

The body must contain a channelLinkSet object that contains one or more blocks, each of which must contain the following:

  • One channelLineUpRef block that contains the following:Either:id – the ID of the channel lineup link, orBoth providerId and providerResourceIdname – the name of the channel lineup

  • An editorialChannelRefSet block containing one or more blocks, each of which must contain:Either:id – the ID of the editorial channel, orBoth the providerId and the providerResourceId of the editorial channelname – the name of the editorial channel

None

A POST request with this payload adds a channel lineup link that links one channel lineup to one channel:

{
   "channelLinkSet": [{
      "channelLineUpRef": {
            "providerId": "test03SHN",
            "providerResourceId": "test03SHN"
         },
         "editorialChannelRefSet": [{
            "providerId": "OPERATOR",
            "providerResourceId": "BE2"
         }]
      }
   ]
}

A successful request returns an HTTP 201 status.

A bad request returns an HTTP 400 status.

For full details of this API, see Content and Product Manager (CPM) API documentation: content v1.