Endpoint
/api/v2/tenants/{tenantId}/kb/article/{articleId}/comment
Path Parameters
tenantIdstring
articleIdstring
attachmentsarray
(Optional) Defines the attachment of an article.
Child Parameters
- attachments.contentURL
- attachments.createdBy
- attachments.createdDate
- attachments.id
- attachments.name
commentstring
Defines the comment to be updated in the article.
{
"attachments": [
{
"file": "U2FtcGxlIFRleHQgZmlsZS0gdGVzdGluZyB3aXRoIGF0dGFjaG1lbnQ=",
"name": "queries.txt"
}
],
"comment": "Test Update"
}
Responses
OK
attachmentsarray
Child Parameters
- attachments.contentURL
- attachments.createdBy
- attachments.createdDate
- attachments.id
- attachments.name
commentstring
createdTimestring
createdUserobject
Child Parameters
- createdUser.email
- createdUser.firstName
- createdUser.id
- createdUser.lastName
- createdUser.loginName
- createdUser.mobileNumber
- createdUser.phoneNumber
{
"attachments": [
{
"contentURL": "https://api.opsramp.com/api/v2/tenants/client_11/article/KB0000000031/comments/45/resources/24",
"createdBy": {
"email": "john@opsramp.com",
"firstName": "OpsRamp API User",
"id": "USR0000000002",
"lastName": " ",
"loginName": "opsramp_api_user"
},
"createdDate": "2019-05-16T08:07:43+0000",
"id": 24,
"name": "queries.txt"
}
],
"comment": "Test Update",
"createdTime": "2019-05-16T08:07:43+0000",
"createdUser": {
"email": "john@opsramp.com",
"firstName": "OpsRamp API User",
"id": "USR0000000002",
"lastName": " ",
"loginName": "opsramp_api_user"
}
}