POST
/posts/{postId}/voteToggle vote on a post
Vote or unvote on a post (toggle)
Parameters
| Name | In | Type | Description |
|---|---|---|---|
postIdrequired | path | string | Post ID |
Response
Vote toggled
| Field | Type | Description |
|---|---|---|
votedrequired | boolean | Whether the post is now voted |
voteCountrequired | number | Current vote count |
Errors
401Unauthorized404Post not foundExample request
curl \
-X POST \
"https://feedback.quackback.io/api/v1/posts/:postId/vote" \
-H "Authorization: Bearer qb_your_api_key_here"