Skip to main content
POST
/
v1
/
public
/
feedback-votes.delete
curl --location --request POST 'https://api.yourapp.com/v1/public/feedback-votes.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "feedbackId": "feedback-uuid"
}'
{
  "success": true,
  "totalVotes": 42
}

Authentication

Requires subscriber JWT token from login/identify.
Authorization: Bearer SUBSCRIBER_JWT_TOKEN

Request Body

feedbackId
string
required
The feedback ID to remove vote from

Response

success
boolean
Returns true if vote was successfully removed
totalVotes
number
Updated total vote count for this feedback
curl --location --request POST 'https://api.yourapp.com/v1/public/feedback-votes.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "feedbackId": "feedback-uuid"
}'
{
  "success": true,
  "totalVotes": 42
}

Behavior

  • Own Vote Only: Can only delete your own vote
  • Vote Count Update: Feedback vote count decremented automatically
  • Idempotent: Returns success even if no vote exists

Use Cases

  • Change Mind: Allow users to remove their vote
  • Toggle Voting: Implement upvote/unvote toggle button
  • Vote Management: Users can manage their voting history

Notes

  • Requires valid subscriber JWT token
  • Returns 404 if feedback doesn’t exist
  • Vote count updates immediately
  • Returns success even if user hasn’t voted