This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a poll.
Site visitors, site members and Wix users can call this method, but only the poll's creator can update the poll. A site visitor stays the poll's creator only for as long as their visitor identity lasts. Each time the poll is updated, revision increments by 1. Specify the current revision to prevent unintended overwrites.
options replaces the full list of options. Options that aren't included are removed together with their votes, the order of the array is the display order, and an option without an id, or with an id that isn't in the poll, is added as a new option. The text and image of an option that already received votes can't be changed (POLL_OPTION_HAS_VOTES). Adding, removing and reordering options is allowed at any time.
There is 1 error with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.