POST api/1/Comments/PostVote

Posts a vote on a comment.

Request Information

URI Parameters

None.

Body Parameters

CommentPostVoteDTO
NameDescriptionTypeAdditional information
CommentID

The ID if the comment to vote on

integer

Required

UserToken

The user's auth token issued by the server.

string

Required

VoteValue

The vote to send. Valid values are -1 and 1.

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "CommentID": 1,
  "UserToken": "sample string 2",
  "VoteValue": 3
}

application/xml, text/xml

Sample:
<CommentPostVoteDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RCS.Web.api._1.DTO">
  <CommentID>1</CommentID>
  <UserToken>sample string 2</UserToken>
  <VoteValue>3</VoteValue>
</CommentPostVoteDTO>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.