Polls API
Search…
⌃K
Links

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

curl -X POST https://api.pollsapi.com/v1/create/vote \
-H "content-type: application/json" \
-H "api-key: $API_KEY" \
-d '
{
"poll_id": "5f9f7b186477891e5bc646a1",
"option_id": "5f9f7b186477891e5bc646a2",
"identifier": "user_12"
}
'

Request Body

{
"poll_id": "5f9f7b186477891e5bc646a1",
"option_id": "5f9f7b186477891e5bc646a2",
"identifier": "user_12"
}