Votes (v2)
Close voting
The organiser ends the vote now (ballots are refused from here, the results show the outcome). Only the author, and only while closing is switched on.
post/api/v2/votes/{code}/close
Request
- Base URL: https://www.endlesstravelplans.com
- URL: https://www.endlesstravelplans.com/api/v2/votes/{code}/close
- Auth: HTTP bearer
Response
Example response
{
"code": "7Q2K-9M4N",
"state": "closed",
"outcome": {
"closed": true,
"winner": {
"id": 1,
"title": "Lisbon",
"points": 3
},
"tied": []
},
"events": [
{
"name": "vote_closed",
"properties": {
"tool": "vote_tool",
"trigger": "organiser"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.