POST /forums/threads/[threadId]/posts/[postId]/vote
/api/store/[slug]/forums/threads/[threadId]/posts/[postId]/voteCasts, changes, or clears the authenticated customer's vote on a forum post and returns the updated score.
Customer bearer token requiredHow authentication works
Path parameters
slugstringrequiredBusiness (store) slug that identifies the tenant
threadIdstringrequiredThread UUID the post belongs to
postIdstringrequiredForum post UUID being voted on (must be a visible post)
Body parameters
directionenumrequiredVote action: up (+1), down (-1), or clear to remove the caller's existing vote
One of up, down, clear
Responses
200
The request succeeded.
What comes back
JSON with success:true, post_id, score (summed vote total after the change), and viewer_vote (the caller's current vote: 1, -1, or 0).