Post a Comment

Post a comment in Chatter.
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
{
   "body":{
      "messageSegments":[
         {
            "type":"Text",
            "text":"New comment"
         }
      ]
   }
}
Request parameter example
/services/data/v64.0/chatter/feed-elements/feedElementId/capabilities/comments/items?text=New+comment
Returns
Comment