Polls API
Search…
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.
post
https://api.pollsapi.com/v1
/create/vote
Add vote to an option in a poll

Example cURL Request

1
curl -X POST https://api.pollsapi.com/v1/create/vote \
2
-H "content-type: application/json" \
3
-H "api-key: $API_KEY" \
4
-d '
5
{
6
"poll_id": "5f9f7b186477891e5bc646a1",
7
"option_id": "5f9f7b186477891e5bc646a2",
8
"identifier": "user_12"
9
}
10
'
Copied!

Request Body

1
{
2
"poll_id": "5f9f7b186477891e5bc646a1",
3
"option_id": "5f9f7b186477891e5bc646a2",
4
"identifier": "user_12"
5
}
Copied!
Last modified 11mo ago