Comment
GET {{_endpoint}}/services/data/v{{version}}/chatter/comments/:COMMENT_ID
Get information about, edit, or delete a comment.
To post a comment, use Feed Elements Capability, Comments Items.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string |
RESPONSES
status OK
{
"body": {
"isRichText": true,
"messageSegments": [
{
"altText": null,
"htmlTag": "p",
"markupType": "Paragraph",
"text": "",
"type": "MarkupBegin",
"url": null
},
{
"text": "Comment",
"type": "Text"
},
{
"htmlTag": "p",
"markupType": "Paragraph",
"text": "\n",
"type": "MarkupEnd"
}
],
"text": "Comment\n"
},
"capabilities": {
"edit": {
"isEditRestricted": false,
"isEditableByMeUrl": "/services/data/v58.0/chatter/comments/0D7.../capabilities/edit/is-editable-by-me",
"lastEditedBy": null,
"lastEditedDate": null,
"latestRevision": 1,
"relativeLastEditedDate": null
},
"status": {
"feedEntityStatus": "Published",
"isApprovableByMe": true
},
"upDownVote": {
"downVoteCount": 0,
"myVote": "None",
"upVoteCount": 0
},
"verified": {
"isVerifiableByMe": false,
"isVerified": false,
"isVerifiedByAnonymized": null,
"lastVerifiedByUser": null,
"lastVerifiedDate": null
}
},
"clientInfo": null,
"createdDate": "2023-11-22T11:19:50.000Z",
"feedElement": {
"id": "0D5...",
"url": "/services/data/v58.0/chatter/feed-elements/0D5..."
},
"id": "0D7...",
"isDeleteRestricted": false,
"likes": {
"currentPageToken": null,
"currentPageUrl": "/services/data/v58.0/chatter/comments/0D7.../likes",
"items": [],
"nextPageToken": null,
"nextPageUrl": null,
"previousPageToken": null,
"previousPageUrl": null,
"total": 0
},
"likesMessage": null,
"moderationFlags": null,
"myLike": null,
"parent": {
"id": "005...",
"url": "/services/data/v58.0/chatter/users/005..."
},
"relativeCreatedDate": "Just now",
"threadLevel": 0,
"threadParentId": null,
"type": "TextComment",
"url": "/services/data/v58.0/chatter/comments/0D7...",
"user": {
"additionalLabel": null,
"communityNickname": "User1696423780773910041",
"companyName": "Salesforce",
"displayName": "Name",
"firstName": "Firstname",
"id": "005...",
"isActive": true,
"isInThisCommunity": true,
"lastName": "Name",
"motif": {
"color": "1B96FF",
"largeIconUrl": "/img/icon/profile64.png",
"mediumIconUrl": "/img/icon/profile32.png",
"smallIconUrl": "/img/icon/profile16.png",
"svgIconUrl": n Curl curl -X GET '/services/data/v61.0/chatter/comments/:COMMENT_ID' -H 'Content-Type: application/json' -d '{"body":{"messageSegments":[{"type":"Text","text":"Editing a comment"}]}}' ENDPOINTS |