Voting
#
Manage event voting#
Vote for decision in eventUsed 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 responseCondition: Decision and event exists
Code: 200
Content example
#
Error response#
Event not foundCondition: Event id was not found
Code: 404
Content example
#
Decision not found for this eventCondition: There isn't a decision with this id for the selected event
Code: 404
Content example
#
User already voted for this eventCondition: The user has already voted for this event
Code: 400
Content example
#
User is not allowed to vote for this eventCondition: The user is not in any group which is allowed to vote for this event
Code: 400
Content example
#
Cancel voting for an eventUsed to cancel a voting
URL: /api/v1/avent/vote/{eventId}
Method: DELETE
Auth required: Yes
Feature required: EventFeature
#
Success responseCondition: Event exists and user has voted for this event
Code: 200
Content example
#
Error response#
Event not foundCondition: Event id was not found
Code: 404
Content example
#
User has not voted for this eventCondition: The user has not voted for the event
Code: 404
Content example