Creates a new poll. The poll and all its options will be assigned valid IDs and option indices by the
server. Options must be passed as an array of strings for the options' texts. The order of the options will be kept.
Creates a new poll. The poll and all its options will be assigned valid IDs and option indices by the server. Options must be passed as an array of strings for the options' texts. The order of the options will be kept.
- application/json
Request Body
- name string required
- description string required
- startDate string required
- endDate string required
- regionId string required
Possible values: Value must match regular expression
\d+
- scope string required
Possible values: Value must match regular expression
\d+
- type string required
Possible values: Value must match regular expression
\d+
- options string required
- notifyVoters string required
- shuffleOptions string required
Default value:
true
Responses
- 200
- 400
- 403
Success
Invalid parameters.
Insufficient permissions to create a poll in that region.
Loading...