Newer Version Available
Feed Element
Access, edit, or delete a feed element. Feed items are the only type of feed element that can be
edited.
- Resource
-
1/chatter/feed-elements/feedElementId1/connect/communities/communityId/chatter/feed-elements/feedElementId - Available version
- 31.0
- Requires Chatter
- Yes
- HTTP methods
- GET, DELETE, PATCH
PATCH is supported in version 34.0 and later.
- Request parameters for GET
-
Parameter Name Type Description Required or Optional Available Version commentSort String Specifies the order of comments. Values are: - CreatedDateLatestAsc—Sorts by most recently created comments in ascending order.
- Relevance—Sorts by most relevant content.
Optional 41.0 elementsPerBundle Integer The maximum number of feed elements per bundle. The default and maximum value is 10. Optional 31.0 recentCommentCount Integer The maximum number of comments to return with each feed element. The default value is 3. Optional 31.0 - Response body for GET
- Generic Feed Element or Feed Item
- Request body for PATCH
- Feed Item Input
- Response body for PATCH
- Feed Item
- Example for editing a feed post using the request body
-
1{ 2 "body":{ 3 "messageSegments":[ 4 { 5 "type":"Text", 6 "text":"Check out the latest API documentation on developer.salesforce.com." 7 } 8 ] 9 } 10} - Example for editing a question title and post
-
1{ 2 "body":{ 3 "messageSegments":[ 4 { 5 "type":"Text", 6 "text":"The latest public versions are on developer.salesforce.com." 7 } 8 ] 9 }, 10 "capabilities":{ 11 "questionAndAnswers" : { 12 "questionTitle" : "Where can I find API documentation" 13 } 14 } 15} - Response body for DELETE
- 204: Successful Delete