Skip to content
Search
K
Main Navigation
Guide
Rest API
Wiki
English
Deutsch
English
Deutsch
Appearance
Menu
Return to top
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
Type
API Key (header: X-CSRF-Token)
Parameters
Path Parameters
pollId
*
Type
string
Required
Pattern
"[1-9][0-9]*"
Request Body
application/json
Schema
JSON
JSON
{
"options"
:
{
}
}
Responses
200
400
401
403
404
Success
PUT
/api/polls/{pollId}/vote
Playground
Authorization
api_key
Variables
Key
Value
pollId
*
Body
Try it out
Samples
cURL
JavaScript
PHP
Python
cURL
JavaScript
PHP
Python