POST api/2.0/community/blog/comment This function requires authentication

Description

Adds a blog comment with the comment text specified in the request. The parent comment ID can be also specified if needed.

Parameters
Name Description Type Example
parentcommentid
sent in body
Parent comment ID string some text
entityid
sent in body
Entity ID where a comment will be added string some text
content
sent in body
Comment text string some text
Example
POST api/2.0/community/blog/comment
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "parentcommentid": "some text",
  "entityid": "some text",
  "content": "some text"
}
Returns

Comment information

Example Response

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>