OpenTV ENTera & OpenTV Platform Documentation

Rate a VOD content for an account

Request

To rate a VOD 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 4 for the VOD content with an ID TDLA0100000088341751:

JavaScript
{
   "dataType":"vod",
   "deviceType":"MediaPlayer",
   "contentId":"TDLA0100000088341751",
   "rating":"4",
   "timestamp":"2015-01-12T12: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.