Skip to content

Vote in a poll. The options need to be a list mapping option indices to the vote values (+1, 0, -1). Depending on the voting type not all options need to be included.

PUT
/api/polls/{pollId}/vote

Authorizations

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters

Path Parameters

pollId*
Typestring
Required
Pattern"[1-9][0-9]*"

Request Body

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

Responses

Success

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python