Skip to main content
POST
/
post
/
{postid}
/
vote
Create or update a vote
curl --request POST \
  --url https://api.sleekplan.com/v1/post/{postid}/vote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "vote": 0,
  "user_id": 123
}
'

Documentation Index

Fetch the complete documentation index at: https://sleekplan.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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