+ Start a Discussion
Abhijit Shrikhande 10Abhijit Shrikhande 10 

Chatter REST API CreatePoll

I am using the following request to create a poll through the REST API.
I am obviously missing something, since my error is Unrecognized field "choices"
I am doing this via the REST Explorer in the workbench.
{ 
   "feedElementType":"FeedItem",
   "subjectId":"00570000001J64WAAS",
   "body" : {
      "messageSegments" : [      {
         "type" : "Text",
         "text" : "When should we meet for UDW planning?"}]
   },
   "capabilities":{ 
   "choices" : [
      "Monday", "Tuesday"
   ]
   }
}

 
vantageadmin hariptst01vantageadmin hariptst01
Hi Abhijit, 
I have the same issue to create a poll on salesforce chatter though REST API , Can u plz help me to get the complete JSON request if you have resolved the issue.
Kindly respond.....