URL
POST https://{api-url}/api/v2/tenants/{tenantId}/kb/article/{articleId}/share
Sample URLs
https://{api-url}/api/v2/tenants/client_11/kb/article/KB0000000036/share
Parameters
This parameter is mandatory:
Field | Description |
---|---|
category | Name of the knowledge base category. |
Status code
200 OK
Sample request
{
"id" :"KBC0000000014"
}
Sample response
{
"id": "KB0000000036",
"subject": "Need to update the Kafka Server Details",
"content": "Modify the Queirs Ann Data",
"createdTime": "2019-05-08T10:55:26+0000",
"updatedTime": "2019-05-10T06:50:58+0000",
"createdBy": {
"id": "USR0000000002",
"loginName": "opsramp_api_user",
"lastName": " ",
"firstName": "OpsRamp API User",
"email": "dev@opsramp.com"
},
"updatedBy": {
"id": "USR0000000002",
"loginName": "opsramp_api_user",
"lastName": " ",
"firstName": "OpsRamp API User",
"email": "dev@opsramp.com"
},
"shared": true,
"category": {
"id": "KBC0000000018",
"name": "Cassandra",
"description": "",
"path": "My Category>>DataBase>>Cassandra",
"state": "ACTIVE"
},
"state": "PUBLISHED",
"attachments": [
{
"id": 14,
"name": "2.txt",
"createdDate": "2019-05-08T10:55:27+0000",
"createdBy": {
"id": "USR0000000002",
"loginName": "opsramp_api_user",
"lastName": " ",
"firstName": "OpsRamp API User",
"email": "dev@opsramp.com"
},
"contentURL": "https://{api-url}/api/v2/tenants/client_11/article/KB0000000036/resources/14"
},
{
"id": 15,
"name": "1.txt",
"createdDate": "2019-05-08T10:55:36+0000",
"createdBy": {
"id": "USR0000000002",
"loginName": "opsramp_api_user",
"lastName": " ",
"firstName": "OpsRamp API User",
"email": "dev@opsramp.com"
},
"contentURL": "https://{api-url}/api/v2/tenants/client_11/article/KB0000000036/resources/15"
},
{
"id": 20,
"name": "bustkt.pdf",
"createdDate": "2019-05-10T05:53:15+0000",
"createdBy": {
"id": "USR0000000003",
"loginName": "superadmin",
"lastName": "Admin",
"firstName": "OpsRamp",
"email": "dev@opsramp.com",
"phoneNumber": ""
},
"contentURL": "https://{api-url}/api/v2/tenants/client_11/article/KB0000000036/resources/20"
},
{
"id": 21,
"name": "bustkt.pdf",
"createdDate": "2019-05-10T05:53:33+0000",
"createdBy": {
"id": "USR0000000003",
"loginName": "superadmin",
"lastName": "Admin",
"firstName": "OpsRamp",
"email": "dev@opsramp.com",
"phoneNumber": ""
},
"contentURL": "https://{api-url}/api/v2/tenants/client_11/article/KB0000000036/resources/21"
},
{
"id": 22,
"name": "queries.txt",
"createdDate": "2019-05-10T06:01:23+0000",
"createdBy": {
"id": "USR0000000002",
"loginName": "opsramp_api_user",
"lastName": " ",
"firstName": "OpsRamp API User",
"email": "dev@opsramp.com"
},
"contentURL": "https://{api-url}/api/v2/tenants/client_11/article/KB0000000036/resources/22"
}
],
"expiryDate": "2019-07-29T07:00:00+0000",
"linkedArticles": [
{
"id": "KB0000000035",
"subject": "All Data",
"shared": false
}
]
}