Newer Version Available

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

Feed Elements Capability, Poll

Access a poll for a feed element, create a poll, or vote on a poll.
Resource
1/chatter/feed-elements/feedElementId/capabilities/poll
1/connect/communities/communityId/chatter/feed-elements/feedElementId/capabilities/poll
Available version
32.0
Requires Chatter
Yes
HTTP methods
GET, PATCH
Request body for PATCH
XML example
1<pollCapability>
2   <pollChoices>
3      <choice>Monday</choice>
4      <choice>Tuesday</choice>
5   </pollChoices>
6</pollCapability>
JSON example
1{ 
2   "choices" : [
3      "Monday", "Tuesday"
4   ]
5}
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
Request parameters for PATCH
Parameter Name Type Description Required or Optional Available Version
myChoiceId String A poll choice ID. Required 32.0
Response body for GET, PATCH
Poll Capability

If the feed element doesn’t support this capability, the response is 404: Not Found.