POST
api/v1/vote/{type}/{id}/{vote}

Submit votes of a user

Request

URL Parameters

Name (Data Type)Description
type: string

Specifies what the ID value refers to. One of the following: comment, submission

Additional information

  • Required

id: integer

ID of content to vote on. The CommentID or SubmissionID.

Additional information

  • Required

vote: integer

One of the following: -1 (down vote), 0 (revoke, unvote), 1 (up vote)

Additional information

  • Required

Response

Value indicating the result of the vote operation.

ApiDataResponseOfVoteResponse
Name (Data Type)Description
data: VoteResponse

success: boolean

version: string

error: ErrorInfo

Response Formats

application/json

Sample:
{
  "success": true,
  "data": {
    "recordedValue": 1,
    "response": null,
    "message": "Sucessfully Recorded",
    "status": "Success",
    "success": true
  },
  "version": "1.1.6251.24016"
}