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/%22some+text%22/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": "\\/Products\\/People\\/Profile.aspx?user=administrator"
    },
    "LastModified": "2020-12-08T17:37:03.3304954Z",
    "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>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
    </Author>
    <LastModified>2020-12-08T17:37:03.3304954Z</LastModified>
    <Inactive>False</Inactive>
  </response>
</result>