OpenTV ENTera & OpenTV Platform Documentation
25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2
25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2

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.