Newer Version Available

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

Comments Resources

Information about the specified comment. Also used to delete a comment, or to like a comment.

Available resources:

Resource Description
/chatter/comments/commentId Returns information about the specified comment. Also used to delete a comment.
/chatter/comments/commentId/likes Returns information about the likes for the specified comment. Also used to add a like to a comment.

Comment

Returns information about the specified comment. Also used to delete a comment.

Resource
1/chatter/comments/commentId
1/connect/communities/communityId/chatter/comments/commentId
Available since version
23.0
Requires Chatter
Yes
HTTP methods
GET, DELETE or HEAD
Response body for GET
Comment
Example

You can find the ID for a specific comment from any feed, such as a news feed or a record feed.

Use the following resource and the HTTP method GET to return information about a comment:
1/chatter/comments/0D7D00000000NtkKAE

Comment Likes

Returns information about the likes for the specified comment. Also used to add a like to a comment.

Resource
1/chatter/comments/commentId/likes
1/connect/communities/communityId/chatter/comments/commentId/likes
Available since version
23.0
Requires Chatter
Yes
HTTP methods
GET, POST or HEAD
Request parameters for GET or HEAD

POST takes no request parameters, nor a request body.

Note

Parameter Name Type Description
page Integer Specifies the number of the page you want returned.
pageSize Integer Specifies the number of items per page. Valid values are between 1 and 100. If you don't specify a size, the default is 25.
Response body for GET
Like Page
Response body for POST
Like