Get Started
Portal api methods
Help

GET api/2.0/community/blog/{postid}/comment This function requires authentication

Description

Returns the list of all the comments for the blog post with the ID specified in the request

Parameters
Name Description Type Example
postid
sent in url
post ID (GUID) guid 9924256A-739C-462b-AF15-E652A3B1B6EB
Example
GET api/2.0/community/blog/9924256A-739C-462b-AF15-E652A3B1B6EB/comment
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

list of post comments

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "created": "2019-08-19T01:39:25.3855162Z",
      "updated": "2019-08-19T01:39:25.3855162Z",
      "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"
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>00000000-0000-0000-0000-000000000000</id>
    <created>2019-08-19T01:39:25.3855162Z</created>
    <updated>2019-08-19T01:39:25.3855162Z</updated>
    <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>
  </response>
</result>