Skip to content

Vote in a poll.​

POST
/api/polls/{pollId}/vote

The request body needs to be a list mapping option indices to the vote values. Depending on the voting type, not all options might need to be included.

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters​

Path Parameters

pollId*
Typeinteger
Required
Minimum1

Request Body​

application/json
JSON
{
"options": {
}
}

Responses​

Success

Playground​

Authorization
Variables
Key
Value
Body

Samples​

cURL
JavaScript
PHP
Python