curl --location --request POST 'https://api.userorbit.com/v1/public/topic-votes.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "topic-uuid-123"
}'
const response = await fetch('https://api.userorbit.com/v1/public/topic-votes.delete', {
method: 'POST',
headers: {
'Authorization': `Bearer ${subscriberToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: topicId })
});
const { ok } = await response.json();
{
"ok": true
}
Votes
Remove Topic Vote
Remove your vote from a topic. Requires subscriber authentication.
POST
/
v1
/
public
/
topic-votes.delete
curl --location --request POST 'https://api.userorbit.com/v1/public/topic-votes.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "topic-uuid-123"
}'
const response = await fetch('https://api.userorbit.com/v1/public/topic-votes.delete', {
method: 'POST',
headers: {
'Authorization': `Bearer ${subscriberToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: topicId })
});
const { ok } = await response.json();
{
"ok": true
}
Authentication
Authorization: Bearer SUBSCRIBER_JWT_TOKEN
Request Body
string
required
Topic ID (UUID) to remove vote from
Response
boolean
Always true
curl --location --request POST 'https://api.userorbit.com/v1/public/topic-votes.delete' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "topic-uuid-123"
}'
const response = await fetch('https://api.userorbit.com/v1/public/topic-votes.delete', {
method: 'POST',
headers: {
'Authorization': `Bearer ${subscriberToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: topicId })
});
const { ok } = await response.json();
{
"ok": true
}
Behavior
- Own Votes Only: Can only remove your own vote
- Idempotent: Safe to call even if not voted
Notes
- Returns success even if no vote existed
- Vote count updates immediately
Was this page helpful?

