Newer Version Available

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

Post to a Group

Resource
/chatter/feed-elements
HTTP method
POST
Request body
Feed Item Input
Request parameters
feedElementType, subjectId, text
Request body example
Specify the group in the subjectId.
1{ 
2   "body" : {
3      "messageSegments" : [
4         {
5            "type" : "Text",
6            "text" : "When should we meet for release planning?"
7         },
8         {   
9            "type" : "Mention",
10            "id" : "005D00000016Qxp"
11         }]
12       },
13   "feedElementType" : "FeedItem",
14   "subjectId" : "0F9B000000000W2"
15}
Request parameter example
1/services/data/v32.0/chatter
2   /feed-elements?feedElementType=FeedItem&subjectId=0F9B000000000W2&text=New+post
Returns
Feed Item