Logo
Salesforce Developers API Documentation

Comment - Edit

PATCH {{_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.

https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_comments_specific.htm#connect_resources_comments_specific

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status OK

{ "body": { "isRichText": false, "messageSegments": [ { "text": "Editing a comment", "type": "Text" } ], "text": "Editing a comment" }, "capabilities": { "edit": { "isEditRestricted": false, "isEditableByMeUrl": "/services/data/v58.0/chatter/comments/0D7.../capabilities/edit/is-editable-by-me", "lastEditedBy": { "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": null }, "mySubscription": null, "name": "Name", "outOfOffice": { "message": "" }, "photo": { "fullEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1", "largePhotoUrl": "https://<my_domain>/profilephoto/7292o000000oAgZ/F", "mediumPhotoUrl": "https://<my_domain>/profilephoto/7292o000000oAgZ/M", "photoVersionId": "729...", "smallPhotoUrl": "https://<my_domain>/profilephoto/7292o000000oAgZ/T", "standardEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1", "url": "/services/data/v58.0/connect/user-profiles/005.../photo" }, "reputation": null, "title": null, "type": "User", "url": "/services/data/v58.0/chatter/users/005...", "userType": "Internal" }, "lastEditedDate": "2023-11-22T11:22:36.000Z", "latestRevision": 2, "relativeLastEditedDate": "Just now" }, "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": "/
Curl
curl -X PATCH '/services/data/v61.0/chatter/comments/:COMMENT_ID' -H 'Content-Type: application/json' -d '{"body":{"messageSegments":[{"type":"Text","text":"Editing a comment"}]}}'

ENDPOINTS