Newer Version Available

This content describes an older version of this product. View Latest

Poll Capability Input

Create or vote on a poll feed element.

To create a poll, use the Feed Elements, Post and Search resource. See Post a Poll for an example.

To vote on a poll, use the Feed Elements Capability, Poll resource.

XML example for creating a poll
1<pollCapability>
2   <pollChoices>
3      <choice>Monday</choice>
4      <choice>Tuesday</choice>
5   </pollChoices>
6</pollCapability>
JSON example for creating a poll
1{ 
2   "choices" : [
3      "Monday", "Tuesday"
4   ]
5}
JSON example for voting on a poll
1{ 
2   "myChoiceId" : "09ATC00000001lh2AA"
3}
Properties
Name Type Description Required or Optional Available Version
choices String[] The choices used to create a new poll. You must specify 2–10 poll choices for each poll. Required for creating a poll 32.0
myChoiceId String ID of an existing choice on the feed poll. Used to vote on an existing poll. Required for voting on a poll 32.0