Create Vote
Add a vote to an option
Now that you have a Poll with some options, let's go ahead and add vote to it.
Add vote to an option in a poll
POST
https://api.pollsapi.com/v1/create/vote
This endpoint helps you add a vote to an option
Headers
Name
Type
Description
Content-Type
string
application/json
api-key
string
API Key for your account
Request Body
Name
Type
Description
poll_id
string
ID of the Poll on which the vote will be added
option_id
string
ID of the Option the vote will be on
identifier
string
Custom field that can be used to store some identifier
Example cURL Request
Request Body
Last updated
Was this helpful?