Hikka Docs Hikka Docs
EndpointsVote

Set Vote

PUT
/vote/{content_type}/{slug}

Path Parameters

content_type*string
Value in"collection" | "comment" | "article"
slug*string

Header Parameters

auth?|
auth?|

Request Body

application/json

score*integer
Range-1 <= value <= 1
[key: string]?never

Response Body

application/json

application/json

curl -X PUT "https://api.hikka.io/vote/collection/string" \  -H "Content-Type: application/json" \  -d '{    "score": -1  }'
{
  "score": 0
}
{
  "message": "Example error message",
  "code": "example_error"
}