Newer Version Available

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

Feed Element

Access, edit, or delete a feed element. Feed items are the only type of feed element that can be edited.
Resource
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 Order of comments. Values are:
  • CreatedDateLatestAsc—Sorts by most recently created comments in ascending order.
  • Relevance—Sorts by most relevant content.
The default value is CreatedDateLatestAsc.
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
Example for editing a question title and post
Response body for DELETE
204: Successful Delete