> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Polls V1

# Type: Poll Object

# Link: https://dev.wix.com/docs/api-reference/assets/rich-content/polls-v1/poll-object.md

## Description: 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.

## Schema:

```json
 Type: Poll Object | type: Poll
 Description: 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.
       - name: id  | type: string | description: Poll ID.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: 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.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the poll was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the poll was last updated.  Not returned for polls that weren't updated since they were created.
       - name: question  | type: string | description: 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.
       - name: image  | type: Image | description: 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`.
           - name: id  | type: string | description: Wix Media image ID.
           - name: url  | type: string | description: Image URL.
           - name: height  | type: number | description: Original image height in pixels.
           - name: width  | type: number | description: Original image width in pixels.
       - name: createdBy  | type: IdentificationData | description: 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.
           - ONE-OF:
               - name: anonymousVisitorId  | type: string | description: ID of a site visitor who isn't logged in.
               - name: memberId  | type: string | description: ID of a site member.
               - name: wixUserId  | type: string | description: ID of a Wix user, such as the site owner or a contributor.
               - name: appId  | type: string | description: ID of an app.
       - name: options  | type: Array<PollOption> | description: 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.
           - name: id  | type: string | description: Option ID. Generated when the option is added to the poll. Ignored when creating a poll.  When updating a poll, specify the ID of an existing option to keep it. An option without an ID is added as a new option. An ID that isn't in the poll is treated as a new option, and the option gets a new ID.  Options that aren't included in the updated `options` array are removed together with their votes.
           - name: text  | type: string | description: Option text. Can't be changed after the option receives votes (`POLL_OPTION_HAS_VOTES`).  Optional. An option without text has no `text`, for example an option that only has an image. When the field is set, it can't be empty.
           - name: image  | type: Image | description: Option image. Can't be changed after the option receives votes.  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`.
       - name: settings  | type: PollSettings | description: Poll settings.
           - name: multipleVotes  | type: boolean | description: Whether a voter can vote for more than one option.  Default: `false`
           - name: votingAccess  | type: string | description: Who can vote.  Default: `PUBLIC`
               enum: PUBLIC, MEMBERS
           - name: resultsVisibility  | type: string | description: Who can see the results. When the caller isn't allowed to see them, `results` is omitted from the response without an error. Whether the caller voted is still returned in `currentVoterOptionIds`.  Default: `PUBLIC`
               enum: PUBLIC, VOTERS, CREATOR
           - name: showVoteCounts  | type: boolean | description: Whether vote counts are shown in the results. When `false`, counts are omitted and voters are also hidden, but `percentage` is still returned.  Default: `true`
               - name: value  | type: boolean | description: 
           - name: showVoters  | type: boolean | description: Whether the members who voted for each option are shown. Voters are shown only when `showVoteCounts` is also `true`.  Default: `true`
       - name: results  | type: PollResults | description: Voting results.  Returned only when `RESULTS` is specified in `fields`, and only when the caller is allowed to see results. See `settings.resultsVisibility`.
           - name: voteCount  | type: number | description: Total number of votes cast for all options. This is the number of votes, not voters: when `settings.multipleVotes` is `true`, a voter who chose several options is counted once per option.  Not returned when `settings.showVoteCounts` is `false`.
               - name: value  | type: number | description: 
           - name: anonymousVoteCount  | type: number | description: Number of votes cast by site visitors who weren't logged in. Included in `voteCount`.  Not returned when `settings.showVoteCounts` is `false`.
           - name: optionResults  | type: Array<PollOptionResults> | description: Results for each option.
               - name: optionId  | type: string | description: Option ID.
               - name: voteCount  | type: number | description: Number of votes for the option.  Not returned when `settings.showVoteCounts` is `false`.
               - name: anonymousVoteCount  | type: number | description: Number of votes for the option cast by site visitors who weren't logged in. Included in `voteCount`.  Not returned when `settings.showVoteCounts` is `false`.
               - name: percentage  | type: number | description: Percentage of `results.voteCount` cast for the option, rounded to the nearest integer. Because of rounding, and because a voter can choose several options when `settings.multipleVotes` is `true`, the percentages of all options don't always add up to 100.  Returned even when `settings.showVoteCounts` is `false`, so that relative results can be displayed without counts.
               - name: latestVoters  | type: Array<IdentificationData> | description: Identities of up to 5 site members or Wix users who voted for the option most recently. To retrieve all voters, call List Voters. To get member names and photos, call Query Members.  Not returned when `settings.showVoters` or `settings.showVoteCounts` is `false`.
       - name: currentVoterOptionIds  | type: Array<string> | description: 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`.

```