Newer Version Available
Post a Feed Element with an Inline Image
Post a feed element with an inline image in Chatter.
This example posts a feed element with an inline image that has been uploaded to Salesforce. To upload a new file, see Uploading Binary Files.
- Resource
- /chatter/feed-elements
- HTTP method
- POST
- Request body
-
Feed Item Input
This Feed Item 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
- Feed Item