Skip to main content
POST
create a poll

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Information of a poll to be created.

Required

  • at least 2 options
  • dataType currently supports text and image, we can also mix dataType in one poll.
  • closedIn unit must be milliseconds
title
string

Poll title with maximum 150 characters

Maximum string length: 150
question
string

question.

answers
object[]
Maximum array length: 10
answerType
enum<string> | null

single or multiple.

Available options:
single,
multiple
closedIn
number

Countdown time to close vote (milliseconds)

Response

Poll Information

polls
object[]
users
object[]
roles
object[]