Get Started
Portal api methods
Help

POST api/2.0/project/message/{messageid}/comment This function requires authentication

Description

Adds a comment to the selected message in a discussion within the project with the content specified in the request. The parent comment ID can also be selected.

Parameters
Name Description Type Example
messageid
sent in url
Message ID number 1234
content
sent in body
Comment content string some text
parentId
sent in body
Parrent comment ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
Example
POST api/2.0/project/message/1234/comment
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "content": "some text",
  "parentId": "9924256A-739C-462b-AF15-E652A3B1B6EB"
}
Returns

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "00000000-0000-0000-0000-000000000000",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "text": "comment text",
    "parentId": "00000000-0000-0000-0000-000000000000",
    "inactive": false,
    "canEdit": false,
    "created": "2019-08-17T20:39:00.1911388Z",
    "updated": "2019-08-17T20:39:00.1911388Z"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>00000000-0000-0000-0000-000000000000</id>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <text>comment text</text>
    <parentId>00000000-0000-0000-0000-000000000000</parentId>
    <inactive>false</inactive>
    <canEdit>false</canEdit>
    <created>2019-08-17T20:39:00.1911388Z</created>
    <updated>2019-08-17T20:39:00.1911388Z</updated>
  </response>
</result>