Feed Elements Capability, 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
-
- 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.