Newer Version Available

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

Post a Comment

Resource
/chatter/feed-elements/feedElementId/capabilities/comments/items
HTTP method
POST
Request body
Comment Input

This Comment Input request body includes a body property that is a Message Body Input request body. In this example, the Message Body Input request body includes a messageSegments property that has one Message Segment Input: Text request body.

Request parameter
text
Request body example
1{
2   "body":{
3      "messageSegments":[
4         {
5            "type":"Text",
6            "text":"New comment"
7         }
8      ]
9   }
10}
Request parameter example
1/services/data/v47.0/chatter/feed-elements/feedElementId/capabilities/comments/items?text=New+comment
Returns
Comment