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