Get Started
Usage API
More information

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

Description

Creates a comment on 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 text 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 information

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": "2021-10-19T03:55:36.0278489Z",
    "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>2021-10-19T03:55:36.0278489Z</lastModified>
    <inactive>false</inactive>
  </response>
</result>