Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Removes your vote from a community post poll, allowing you to re-vote if desired.

URL Parameters

community_id
integer
required
The ID of the community
id
integer
required
The ID of the community post
poll_id
integer
required
The ID of the poll

Returns

Returns the updated poll object with current vote counts.
curl -X DELETE https://api.onlydrams.app/odis/v1/communities/1/posts/2/polls/1/vote \
     -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "id": 1,
  "question": "What's your favorite whisky type?",
  "multiple_choice": false,
  "expires_at": "2024-11-15T00:00:00Z",
  "total_votes": 42,
  "poll_options": [
    {
      "id": 1,
      "option_text": "Single Malt",
      "vote_count": 25,
      "position": 1
    },
    {
      "id": 2,
      "option_text": "Bourbon",
      "vote_count": 17,
      "position": 2
    }
  ]
}

Error Responses

{
  "message": "No vote found to remove"
}
{
  "message": "Poll does not belong to this post"
}

Notes

  • Authorization: Any authenticated user
  • Re-voting: After removing vote, can vote again using the vote endpoint
  • Vote Counts: Poll totals updated immediately
  • Own Votes Only: Can only remove your own vote