POST Videos/LikeVideoComment

Add or delete like from comment

Request Information

URI Parameters

None.

Body Parameters

RequestVideoCommentLike
NameDescriptionTypeAdditional information
UserID

integer

None.

CommentID

integer

None.

Like

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "CommentID": 2,
  "Like": true
}

text/html

Sample:
{"UserID":1,"CommentID":2,"Like":true}

application/xml, text/xml

Sample:
<RequestVideoCommentLike xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <CommentID>2</CommentID>
  <Like>true</Like>
  <UserID>1</UserID>
</RequestVideoCommentLike>

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 'RequestVideoCommentLike'.

Response Information

Resource Description

true if success else false

Success
NameDescriptionTypeAdditional information
success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true
}

text/html

Sample:
{"success":true}

application/xml, text/xml

Sample:
<Success xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <success>true</success>
</Success>