POST Videos/SetVideoRating

Add or edit video rating returns rating

Request Information

URI Parameters

None.

Body Parameters

RequestSetVideoRating
NameDescriptionTypeAdditional information
UserID

integer

None.

VideoID

integer

None.

Rating

Rating 1-5 stars

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "VideoID": 2,
  "Rating": 3
}

text/html

Sample:
{"UserID":1,"VideoID":2,"Rating":3}

application/xml, text/xml

Sample:
<RequestSetVideoRating xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <Rating>3</Rating>
  <UserID>1</UserID>
  <VideoID>2</VideoID>
</RequestSetVideoRating>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestSetVideoRating'.

Response Information

Resource Description

SetVideoRating
NameDescriptionTypeAdditional information
Rating

if Rating = 0 something went wrong

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Rating": 1
}

text/html

Sample:
{"Rating":1}

application/xml, text/xml

Sample:
<SetVideoRating xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <Rating>1</Rating>
</SetVideoRating>