Feed Elements Capability, Comments Items
POST {{_endpoint}}/services/data/v{{version}}/chatter/feed-elements/:FEED_ELEMENT_ID/capabilities/comments/items?text=New Comment
Access comments for a feed element, or add a comment to a feed element. To upload a binary file to attach to a comment, you must send it in a multipart/form-data request. To send the text of the comment, you can choose to include a JSON or XML rich input body part in the multipart/form-data request. Alternately, you can choose to pass the information in request parameter parts. For information about how to create the multipart/form-data message, see Uploading Binary Files.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
text | string |
RESPONSES
status: Created
{"body":{"isRichText":false,"messageSegments":[{"text":"New Comment","type":"Text"}],"text":"New Comment"},"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":{"applicationName":"Postman Playground","applicationUrl":null},"createdDate":"2023-11-22T11:14:33.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":"001...","url":"/services/data/v58.0/chatter/records/001..."},"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":null},"mySubscription":null,"name":"Name","outOfOffice":{"message":""},"photo":{"fullEmailPhotoUrl":"https://\u003cmy_domain\u003e/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1","largePhotoUrl":"https://\u003cmy_domain\u003e/profilephoto/729.../F","mediumPhotoUrl":"https://\u003cmy_domain\u003e/profilephoto/729.../M","photoVersionId":"729...","smallPhotoUrl":"https://\u003cmy_domain\u003e/profilephoto/729.../T","standardEmailPhotoUrl":"https://\u003cmy_domain\u003e/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"}}