Get Started
Usage API
More information

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

Description

Returns the information about a comment with the ID specified in the request.

Parameters
Name Description Type Example
commentid
sent in url
Comment ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
Example
GET api/2.0/project/comment/9924256A-739C-462b-AF15-E652A3B1B6EB
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

Comment

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": "2021-12-02T05:36:19.9715392Z",
    "updated": "2021-12-02T05:36:19.9715392Z"
  }
}

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>2021-12-02T05:36:19.9715392Z</created>
    <updated>2021-12-02T05:36:19.9715392Z</updated>
  </response>
</result>