Documentation is now available for the Fall 2020 Update release!

Get list of comments

This endpoint is used to get list of comments of an article.

Leave Feedback

URL

GET https://{api-url}/api/v2/tenants/{tenantId}/kb/article/{articleId}/comments

Sample URLs

https://{api-url}/api/v2/tenants/client_11/kb/article/KB0000000031/comments

Status code

200 OK

Sample response

[
    {
        "comment": "Test Update",
        "createdTime": "2019-05-16T08:07:43+0000",
        "createdUser": {
            "id": "USR0000000002",
            "loginName": "opsramp_api_user",
            "lastName": " ",
            "firstName": "OpsRamp API User",
            "email": "john@opsramp.com"
        },
        "attachments": [
            {
                "id": 24,
                "name": "queries.txt",
                "createdDate": "2019-05-16T08:07:43+0000",
                "createdBy": {
                    "id": "USR0000000002",
                    "loginName": "opsramp_api_user",
                    "lastName": " ",
                    "firstName": "OpsRamp API User",
                    "email": "john@opsramp.com"
                },
                "contentURL": "https://api.opsramp.com/api/v2/tenants/client_11/kb/article/KB0000000031/comments/45/resources/24"
            }
        ]
    },
    {
        "comment": "Test Update",
        "createdTime": "2019-05-16T08:06:21+0000",
        "createdUser": {
            "id": "USR0000000002",
            "loginName": "opsramp_api_user",
            "lastName": " ",
            "firstName": "OpsRamp API User",
            "email": "john@opsramp.com"
        }
    },
    {
        "comment": "Comment from SP",
        "createdTime": "2019-05-07T09:44:19+0000",
        "createdUser": {
            "id": "USR0000000003",
            "loginName": "superadmin",
            "lastName": "Admin",
            "firstName": "OpsRamp",
            "email": "john@opsramp.com",
            "phoneNumber": ""
        }
    },
    {
        "comment": "Test",
        "createdTime": "2019-05-07T08:58:11+0000",
        "createdUser": {
            "id": "USR0000000009",
            "loginName": "Client_User",
            "lastName": "User",
            "firstName": "Client",
            "email": "john@opsramp.com",
            "phoneNumber": ""
        }
    },
    {
        "comment": "Test",
        "createdTime": "2019-05-07T08:57:39+0000",
        "createdUser": {
            "id": "USR0000000011",
            "loginName": "Client_User_2",
            "lastName": "User2",
            "firstName": "CLient",
            "email": "john@opsramp.com",
            "phoneNumber": ""
        }
    },
    {
        "comment": "Test Update",
        "createdTime": "2019-05-07T08:54:31+0000",
        "createdUser": {
            "id": "USR0000000002",
            "loginName": "opsramp_api_user",
            "lastName": " ",
            "firstName": "OpsRamp API User",
            "email": "john@opsramp.com"
        }
    },
    {
        "comment": "Test Update",
        "createdTime": "2019-05-07T08:53:44+0000",
        "createdUser": {
            "id": "USR0000000002",
            "loginName": "opsramp_api_user",
            "lastName": " ",
            "firstName": "OpsRamp API User",
            "email": "john@opsramp.com"
        }
    }
]