Skip to main content

Poll

{
"id": "integer",
"title": "string",
"multiple_choices": "boolean",
"added_at": "string",
"modified_at": "string",
"closed": "boolean",
"expiration_at": "string",
"hidden": "boolean",
"choices": [
{
"id": "integer",
"choice": "string",
"order": "integer",
"added_at": "2string",
"deleted": "boolean",
"vote_count": "integer",
"voted": "boolean"
},
{
"id": "integer",
"choice": "string",
"order": "integer",
"added_at": "2string",
"deleted": "boolean",
"vote_count": "integer",
"voted": "boolean"
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalseread-onlyA unique integer value identifying this poll
titlestringtruenonePoll title
multiple_choicesbooleanfalsenoneIf true, poll has multiple choices votable
added_atstring(date-time)falseread-onlyDatetime of poll creation
modified_atstring(date-time)falseread-onlyDatetime of poll last edit
closedbooleanfalsenoneIf true, poll is closed
expiration_atstring(date-time)falsenonePoll expiration datetime
hiddenstringfalseread-onlyIf true, poll is hidden
choiceslist(object)truenonePoll choices
» idintegerfalseread-onlyPoll choice id
» choicestringtruenonePoll choice description
» orderintegerfalseread-onlyThe order
» added_atstring(date-time)falseread-onlyPoll choice creation time
» deletedbooleanfalseread-onlyIf true, choice has been deleted
» vote_countintegerfalseread-onlyPoll choice votes number
» votedbooleanIf true, poll choice has been voted