URL
POST https://{api-url}/api/v2/tenants/{tenantId}/kb/article/{articleId}/comment
Sample URLs
https://{api-url}/api/v2/tenants/client_11/kb/article/KB0000000031/comment
Parameters
Field | Data Type | Description |
---|---|---|
comment | String | Defines the comment to be updated in the article. |
attachments | String | (Optional) Defines the attachment of an article. |
Status code
200 OK
Sample request
{
"comment" : "Test Update",
"attachments": [{
"name": "queries.txt",
"file": "U2FtcGxlIFRleHQgZmlsZS0gdGVzdGluZyB3aXRoIGF0dGFjaG1lbnQ="
}]
}
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-url}/api/v2/tenants/client_11/article/KB0000000031/comments/45/resources/24"
}
]
}