Get Started
Portal api methods
Help

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

Description

Returns the list of comments to the messages in the discussions within the project with the ID specified in the request

Parameters
Name Description Type Example
messageid
sent in url
Message ID number 1234
Example
GET api/2.0/project/message/1234/comment
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

Comments for message

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-12-12T20:36:51.6733400Z",
      "updated": "2019-12-12T20:36:51.6733400Z"
    }
  ]
}

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-12-12T20:36:51.6733400Z</created>
    <updated>2019-12-12T20:36:51.6733400Z</updated>
  </response>
</result>