Post a Comment with an Inline Image
This example posts a comment with an inline image that has been uploaded to Salesforce. To upload a new file, see Uploading Binary Files.
- 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 two Message Segment Input: Text request bodies and two Message Segment Input: Inline Image request bodies.
- Request body example
-
- Returns
- Comment