Feed Elements Capability, Poll

Access a poll for a feed element or vote on a poll.

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

Resource
/chatter/feed-elements/feedElementId/capabilities/poll
/connect/communities/communityId/chatter/feed-elements/feedElementId/capabilities/poll
Available version
32.0
Requires Chatter
Yes
HTTP methods
GET, PATCH
Request body for PATCH
JSON example for voting on a poll
{ 
   "myChoiceId" : "09ATC00000001lh2AA"
}
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.