Voting

Cast Vote

Cast a vote on a voting session. Public endpoint with duplicate vote prevention.

post/api/v1/votes/{url}/cast

Request

  • Base URL: https://www.endlesstravelplans.com
  • URL: https://www.endlesstravelplans.com/api/v1/votes/{url}/cast
  • Auth: none required

Request body

option_idsinteger[] required

The option IDs to vote for.

voter_namestring nullable

Optional voter name.

Example request

{
  "option_ids": [
    1
  ],
  "voter_name": "John"
}

Response

voteobject
messagestring

Example response

{
  "vote": {},
  "message": "Vote cast successfully."
}

Changes

No recorded changes to this operation across all 1 revision of this API.