Votes (v2)
Set a voter's weight
The organiser's weight switch on a weighted vote without roles: every ballot of that voter counts 2, or back to 1 (weight sets it outright; left out, it toggles). choiceId is the voter's id under voters.
patch/api/v2/votes/{code}/ballots/{choiceId}/weight
Request
- Base URL: https://www.endlesstravelplans.com
- URL: https://www.endlesstravelplans.com/api/v2/votes/{code}/ballots/{choiceId}/weight
- Auth: HTTP bearer
Request body
Example request
{
"weight": 2
}Response
Example response
{
"code": "7Q2K-9M4N",
"voters": [
{
"id": 12,
"voter_name": "Sam",
"vote_weight": 2
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.