curl --location --request POST 'https://api.userorbit.com/v1/public/feedback-votes.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"feedbackId": "feedback-uuid"
}'
const response = await fetch('https://api.userorbit.com/v1/public/feedback-votes.delete', {
method: 'POST',
headers: {
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
feedbackId: 'feedback-uuid'
})
});
const { success, totalVotes } = await response.json();
console.log(`Vote removed! Total votes: ${totalVotes}`);
import requests
response = requests.post(
'https://api.userorbit.com/v1/public/feedback-votes.delete',
headers={
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
json={
'feedbackId': 'feedback-uuid'
}
)
result = response.json()
print(f"Vote removed! Total votes: {result['totalVotes']}")
{
"success": true,
"totalVotes": 42
}
Votes
Remove Feedback Vote
Remove your vote from a feedback item. Requires subscriber authentication.
POST
/
v1
/
public
/
feedback-votes.delete
curl --location --request POST 'https://api.userorbit.com/v1/public/feedback-votes.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"feedbackId": "feedback-uuid"
}'
const response = await fetch('https://api.userorbit.com/v1/public/feedback-votes.delete', {
method: 'POST',
headers: {
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
feedbackId: 'feedback-uuid'
})
});
const { success, totalVotes } = await response.json();
console.log(`Vote removed! Total votes: ${totalVotes}`);
import requests
response = requests.post(
'https://api.userorbit.com/v1/public/feedback-votes.delete',
headers={
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
json={
'feedbackId': 'feedback-uuid'
}
)
result = response.json()
print(f"Vote removed! Total votes: {result['totalVotes']}")
{
"success": true,
"totalVotes": 42
}
Authentication
Requires subscriber JWT token from login/identify.Authorization: Bearer SUBSCRIBER_JWT_TOKEN
Request Body
string
required
The feedback ID to remove vote from
Response
boolean
Returns true if vote was successfully removed
number
Updated total vote count for this feedback
curl --location --request POST 'https://api.userorbit.com/v1/public/feedback-votes.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"feedbackId": "feedback-uuid"
}'
const response = await fetch('https://api.userorbit.com/v1/public/feedback-votes.delete', {
method: 'POST',
headers: {
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
feedbackId: 'feedback-uuid'
})
});
const { success, totalVotes } = await response.json();
console.log(`Vote removed! Total votes: ${totalVotes}`);
import requests
response = requests.post(
'https://api.userorbit.com/v1/public/feedback-votes.delete',
headers={
'Authorization': 'Bearer SUBSCRIBER_JWT_TOKEN',
'Content-Type': 'application/json'
},
json={
'feedbackId': 'feedback-uuid'
}
)
result = response.json()
print(f"Vote removed! Total votes: {result['totalVotes']}")
{
"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
Was this page helpful?

