Newer Version Available

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

Post a Rich-Text Comment

This example posts a comment that includes two paragraphs, one in bold, and an extra line break between them.

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 three Message Segment Input: Text request bodies, four Message Segment Input: Markup Begin request bodies, and four Message Segment Input: Markup End request bodies.

Request body example
Returns
Comment