Skip to main content
POST
Create or update a vote

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

postid
string
required

Body

application/json
vote
integer

The vote value:

  • -1 downvote
  • 0 remove current vote
  • 1 upvote
Required range: -1 <= x <= 1
user_id
integer

End-user ID for the vote.

Response

200

OK