POST api/2.0/community/wiki/comment
Adds a comment to the selected entity with the content specified in the request.
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/wiki/comment
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"parentcommentid": "some text",
"entityid": "some text",
"content": "some text"
}
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>