ConnectApi.PollCapabilityInput

Create, update, or vote on a poll on a feed element.

This class is a subclass of ConnectApi.FeedElementCapabilityInput.

PropertyTypeDescriptionRequired or OptionalAvailable Version
choicesList<String>The choices used to create a new poll. You must specify 2–10 poll choices for each poll.Required for creating a poll32.0
myChoiceIdStringID of an existing choice on the feed poll. Used to vote on an existing poll.Required for voting on a poll32.0

See Also