Newer Version Available

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

Feed Elements Capability, Chatter Likes Items

Access a page of likes for a feed element. Like or unlike a feed element.
Resource
1/chatter/feed-elements/feedElementId/capabilities/chatter-likes/items
1/connect/communities/communityId/chatter/feed-elements/feedElementId/capabilities/chatter-likes/items
Available version
32.0
Requires Chatter
Yes
HTTP methods
GET, PATCH, POST

PATCH is supported in version 39.0 and later.

Request parameters for GET
Parameter Name Type Description Required or Optional Available Version
page Integer Specifies the number of the page you want returned. If you don’t specify a value, the first page is returned. Optional 32.0
pageSize Integer Specifies the number of likes per page. Valid values are from 1 to 100. If you don't specify a size, the default is 25. Optional 32.0
Response body for GET
Like Page

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

Request parameters for PATCH
Parameter Name Type Description Required or Optional Available Version
isLikedBy​CurrentUser Boolean Specifies whether the context user likes (true) or unlikes (false) the feed element. Required 39.0
Response body for PATCH
Like Page

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

Request parameters for POST

POST takes no request parameters nor a request body.

Note

Response body for POST
Like

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