OpenTV ENTera & OpenTV Platform Documentation

Link a product to live channels

Request

To link a product to live channels, send a PUT request to:

http://<server>:<port>/cpm/content/v1/productLinks

The payload should contain the details of the channels to be associated with the product.

Mandatory fields

  • productRef

    • id

  • marketableRef

    • type

    • id

Example

A request with this payload links the specified channels to the specified product:

{     "productLinkSet": [         {             "productRef": {                 "_id": "PROVIDER_ID_001_PROVIDER_RESOURCE_ID_001"             },             "marketableRef": {                 "type": "technicalChannel",                 "_id": "tchp01_tchpr01"             }         } ] }

Response

A successful request returns an HTTP 200 status and the URIs of the updated product links.

A bad request returns an HTTP 400 status.




Example

A successful request returns a payload that looks like this:

{     "selfSet": [         "http://api.demo.otv-se.com/rest/api/content/v1/productLinks/technicalChannel/tchp01_tchpr01/product/PROVIDER_ID_001_PROVIDER_RESOURCE_ID_001"     ],     "totalRecords": 1 }

See also

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