Skip to content

๐Ÿ”’ Close Poll

Endpoint: POST /api/admin/polls/{poll_id}/close/
Auth Required: โœ… Yes (Admin Bearer Token)
Content-Type: application/json


๐Ÿ“Œ Description

This endpoint allows administrators to manually close an active poll before or at its scheduled expiry time.

Once a poll is closed: - voting is permanently disabled - results become final - poll data becomes immutable

This action represents the official end of a civic consultation.


๐Ÿ” Authentication

Include the admin access token in the request header:


๐Ÿ”— Path Parameter

Parameter Type Required Description
poll_id UUID โœ… Poll identifier

๐Ÿ”„ Close Behavior

  • Poll status โ†’ closed
  • Voting disabled immediately
  • Votes locked permanently
  • Results finalized
  • Closure recorded for audit

๐Ÿงพ Request Body (Optional)

```json { "reason": "Poll duration completed and sufficient participation achieved." }