Adds a comment to the entity with the ID specified in the request. The parent event ID can be also specified if needed.
Name | Description | Type | Example |
parentcommentid
sent in body
|
Comment parent ID | string | some text |
entityid
sent in body
|
Entity ID | string | some text |
content
sent in body
|
Comment text | string | some text |
POST api/2.0/community/event/comment Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "parentcommentid": "some text", "entityid": "some text", "content": "some text" }
Comment information
application/json
{ "status": 0, "response": { "commentID": "12261949-db62-43c2-b956-91e12c412d5a", "userID": "15985c13-ad91-4f2c-9286-cf991448e796", "userPost": null, "userFullName": "Administrator", "userProfileLink": "\\/Products\\/People\\/Profile.aspx?user=administrator", "userAvatarPath": "\\/skins\\/default\\/images\\/default_user_photo_size_82-82.png", "commentBody": "das\\u000a", "inactive": false, "isRead": true, "isEditPermissions": true, "isResponsePermissions": true, "timeStampStr": "15:39 Today", "commentList": null, "attachments": null } }
text/xml
<result> <status>0</status> <response> <commentID>12261949-db62-43c2-b956-91e12c412d5a</commentID> <userID>15985c13-ad91-4f2c-9286-cf991448e796</userID> <userPost /> <userFullName>Administrator</userFullName> <userProfileLink>\/Products\/People\/Profile.aspx?user=administrator</userProfileLink> <userAvatarPath>\/skins\/default\/images\/default_user_photo_size_82-82.png</userAvatarPath> <commentBody>das\u000a</commentBody> <inactive>False</inactive> <isRead>True</isRead> <isEditPermissions>True</isEditPermissions> <isResponsePermissions>True</isResponsePermissions> <timeStampStr>15:39 Today</timeStampStr> <commentList /> <attachments /> </response> </result>