POST api/2.0/community/wiki/{page}/comment
Creates the comment to the selected wiki page with the content specified in the request
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
|
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"
}
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-03-02T06:12:00.6540478Z",
"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-03-02T06:12:00.6540478Z</lastModified>
<inactive>false</inactive>
</response>
</result>