Skip to content
Coursey CreativeSign in

POST /community/threads/[threadId]/posts/[postId]/vote

/api/store/[slug]/community/threads/[threadId]/posts/[postId]/vote

Casts, changes, or clears the authenticated customer's vote on a forum post; alias that re-exports the forums vote handler.

Customer bearer token requiredHow authentication works

Path parameters

slugstringrequired

Business (store) slug that identifies the tenant

threadIdstringrequired

Thread UUID the post belongs to

postIdstringrequired

Forum post UUID being voted on (must be a visible post)

Body parameters

directionenumrequired

Vote 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).