A poll is a question with a set of options that site visitors, site members and Wix users can vote on.
Polls are embedded in Ricos, Wix's rich content format used by Wix Blog, Wix Forum, Wix Comments and other apps. A poll node in the rich content references the poll by its ID, in pollData.poll.id.
A poll is displayed on the site only when the rich content that contains it includes a poll node with the poll's ID. Deleting the content doesn't delete its polls, and deleting a poll doesn't remove its node from the content.
Identity of the poll's creator: a site member, a Wix user or a site visitor who isn't logged in. Only the creator can update or delete the poll.
Date and time the poll was created.
IDs of the options the caller voted for. Empty if the caller didn't vote.
Returned only when CURRENT_VOTER_VOTES is specified in fields, regardless of settings.resultsVisibility.
Poll ID.
Poll image.
To set the image, send its url: a Wix Media URL (static.wixstatic.com) of an image in the site's Media Manager. id is derived from the URL. height and width aren't populated and are always 0.
Options that voters can choose from. The order of the array is the order in which options are displayed.
When updating a poll, options replaces the full list. Options that aren't included are removed together with their votes. See PollOption for details.
Poll question.
Optional. A poll without a question has no question, for example a poll that only has images.
When the field is set, it can't be empty.
Voting results.
Returned only when RESULTS is specified in fields, and only when the caller is allowed to see results. See settings.resultsVisibility.
Revision number, which increments by 1 each time the poll is updated. To prevent conflicting changes, the existing revision must be specified when updating a poll.
Ignored when creating a poll.
Poll settings.
Date and time the poll was last updated.
Not returned for polls that weren't updated since they were created.