Get Started
Portal api methods
Help

POST api/2.0/community/wiki/{page}/comment This function requires authentication

Description

Creates the comment to the selected wiki page with the content specified in the request

Parameters
Name Description Type Example
page
sent in url
Page name string some text
content
sent in body
Comment content string some text
parentId
sent in body
Comment parent id string some text
Example
POST api/2.0/community/wiki/some+text/comment
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "content": "some text",
  "parentId": "some text"
}
Returns

Comment info

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "00000000-0000-0000-0000-000000000000",
    "parentId": "00000000-0000-0000-0000-000000000000",
    "page": "Some page",
    "content": "Comment content",
    "author": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "lastModified": "2019-12-12T20:36:51.5640442Z",
    "inactive": false
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>00000000-0000-0000-0000-000000000000</id>
    <parentId>00000000-0000-0000-0000-000000000000</parentId>
    <page>Some page</page>
    <content>Comment content</content>
    <author>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </author>
    <lastModified>2019-12-12T20:36:51.5640442Z</lastModified>
    <inactive>false</inactive>
  </response>
</result>