OpenTV ENTera & OpenTV Platform Documentation

Rate a BTV content for an account

Request

To rate a BTV content for an account, send a POST request to:

https://<host>:<port>/contentdiscovery/v2/ratings/account/{accountId}

Headers

  • Content-Type: application/json

Mandatory arguments

  • dataType – the type of content

  • deviceType – the type of device.

  • contentId – the content ID being rated

  • rating – the rating

Other arguments

  • entity – the type of entity

  • timestamp – the UTC time/date of the rating

Example

A POST request with this payload submits a rating of 2 for the BTV content with an ID of TDLA0100000088341751:

{
   "dataType":"btv",
   "deviceType":"SetTopBox",
   "contentId":"TDLA0100000088341751",
   "rating":"2",
   "timestamp":"2015-01-12T14:20:02.000Z"
}

Response

A successful request returns an HTTP 202 status.

A bad request returns an HTTP 400 status.

See also

For full details of this API, see Content Discovery Gateway (CDG) API documentation.