Voting
Manage event voting#
Vote for decision in event#
Used to vote for a decision in an event
URL: /api/v1/avent/vote
Method: POST
Auth required: Yes
Feature required: EventFeature
Data constraints
Data example
Success response#
Condition: Decision and event exists
Code: 200
Content example
Error response#
Event not found#
Condition: Event id was not found
Code: 404
Content example
Decision not found for this event#
Condition: There isn't a decision with this id for the selected event
Code: 404
Content example
User already voted for this event#
Condition: The user has already voted for this event
Code: 400
Content example
User is not allowed to vote for this event#
Condition: The user is not in any group which is allowed to vote for this event
Code: 400
Content example
Cancel voting for an event#
Used to cancel a voting
URL: /api/v1/avent/vote/{eventId}
Method: DELETE
Auth required: Yes
Feature required: EventFeature
Success response#
Condition: Event exists and user has voted for this event
Code: 200
Content example
Error response#
Event not found#
Condition: Event id was not found
Code: 404
Content example
User has not voted for this event#
Condition: The user has not voted for the event
Code: 404
Content example