No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Comments Resources
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- Available since version
- 23.0
- HTTP methods
- GET, DELETE or HEAD
- Response body for GET or HEAD
- 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/0D7D00000000NtkKAEThe response is:1{ 2 "attachment": null, 3 "body": { 4 "messageSegments": [{ 5 "tag": "allhands", 6 "text": "#allhands", 7 "topicUrl": "/services/data/v30.0/connect/topics?exactMatch=true&q=allhands", 8 "type": "Hashtag", 9 "url": "/services/data/v30.0/chatter/feed-items?q=%23allhands" 10 }], 11 "text": "#allhands" 12 }, 13 "clientInfo": null, 14 "createdDate": "2013-01-16T01:06:28.000Z", 15 "feedItem": { 16 "id": "0D5D0000000JmV1KAK", 17 "url": "/services/data/v30.0/chatter/feed-items/0D5D0000000JmV1KAK" 18 }, 19 "id": "0D7D00000000PWAKA2", 20 "isDeleteRestricted": false, 21 "likes": { 22 "currentPageUrl": "/services/data/v30.0/chatter/comments/0D7D00000000PWAKA2/likes", 23 "likes": [], 24 "nextPageUrl": null, 25 "previousPageUrl": null, 26 "total": 0 27 }, 28 "likesMessage": null, 29 "moderationFlags": null, 30 "myLike": null, 31 "parent": { 32 "id": "0F9D00000000I4OKAU", 33 "url": "/services/data/v30.0/chatter/groups/0F9D00000000I4OKAU" 34 }, 35 "relativeCreatedDate": "January 15, 2013 at 5:06 PM", 36 "type": "TextComment", 37 "url": "/services/data/v30.0/chatter/comments/0D7D00000000PWAKA2", 38 "user": { 39 "companyName": "Universal Containers", 40 "firstName": "Deanna", 41 "id": "005D0000001LL8OIAW", 42 "isActive": true, 43 "isInThisCommunity": true, 44 "lastName": "Li", 45 "motif": { 46 "color": "1797C0", 47 "largeIconUrl": "/img/icon/profile64.png", 48 "mediumIconUrl": "/img/icon/profile32.png", 49 "smallIconUrl": "/img/icon/profile16.png" 50 }, 51 "mySubscription": null, 52 "name": "Deanna Li", 53 "photo": { 54 "fullEmailPhotoUrl": "https://instance_name/ncsphoto/SqRfG_-PUTY6KtfOp_f0cEw-MQI3xmkJ21oNEOQ-5sa4idjK69Im5uTYfmFricjT", 55 "largePhotoUrl": "https://instance_name/profilephoto/729D00000000LJF/F", 56 "photoVersionId": "729D00000000LJFIA2", 57 "smallPhotoUrl": "https://instance_name/profilephoto/729D00000000LJF/T", 58 "standardEmailPhotoUrl": "https://instance_name/ncsphoto/SqRfG_-PUTY6KtfOp_f0cEw-MQI3xmkJ21oNEOQ-5sbMgjs7ldMuVclujIS-dbL9", 59 "url": "/services/data/v30.0/chatter/users/005D0000001LL8OIAW/photo" 60 }, 61 "title": null, 62 "type": "User", 63 "url": "/services/data/v30.0/chatter/users/005D0000001LL8OIAW", 64 "userType": "Internal" 65 } 66}
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- Available since version
- 23.0
- HTTP methods
- GET, POST or HEAD
- Request parameters for GET or HEAD
-
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 or HEAD
- Like Page
- Response body for POST
- Like