Newer Version Available

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

Feed Elements Capability, Comments

Access the comments capability for a feed element.
Resource
1/chatter/feed-elements/feedElementId/capabilities/comments
1/connect/communities/communityId/chatter/feed-elements/feedElementId/capabilities/comments
Available version
32.0
Requires Chatter
Yes
HTTP methods
GET
Request parameters for GET
Parameter Name Type Description Required or Optional Available Version
sort String Order of comments. Values are:
  • CreatedDateLatestAsc—Sorts by most recently created comments in ascending order.
  • CreatedDateOldestAsc—Sorts by oldest comments in ascending order.
  • Relevance—Sorts by most relevant content.
The default value is CreatedDateLatestAsc.

Sorting in descending order isn’t supported.

Optional 41.0
threaded​Comments​Collapsed Boolean Specifies whether to return threaded comments in a collapsed style (true) or not (false). If you don’t specify, the default is false. Optional 44.0
Response body for GET
Comments Capability

If the feed element doesn’t support this capability, the response is 404: Not Found.