Structsยง
- List
Polls Query - Poll
Statistics Response - cancel_
poll - Cancel a poll POST /api/v1/polls/:id/cancel
- cast_
poll_ vote - Cast a vote on a poll POST /api/v1/polls/vote
- close_
poll - Close a poll manually POST /api/v1/polls/:id/close
- create_
poll - Create a new poll (draft status) POST /api/v1/polls
- delete_
poll - Delete a poll (only draft or cancelled) DELETE /api/v1/polls/:id
- find_
active_ polls - Find active polls for a building GET /api/v1/buildings/:building_id/polls/active
- get_
poll - Get poll by ID GET /api/v1/polls/:id
- get_
poll_ building_ statistics - Get poll statistics for a building GET /api/v1/buildings/:building_id/polls/statistics
- get_
poll_ results - Get poll results GET /api/v1/polls/:id/results
- list_
polls - List polls with pagination and filters GET /api/v1/polls?page=1&per_page=10&building_id=xxx&status=active
- publish_
poll - Publish a poll (change from draft to active) POST /api/v1/polls/:id/publish
- update_
poll - Update poll (only draft polls can be updated) PUT /api/v1/polls/:id