Related Knowledge Articles
- To view the knowledge articles, follow the API below.
- This API will only respond with results when related knowledge articles indexing is already done.
- To index related knowledge Articles tickets, refer section Index articles
- Make sure to use collection name as “knowledgearticles”.
**Endpoint:** ` http://{API_URL}/external/api/event/articles `
**Method:** `POST`
**Description:** This endpoint fetches the related knowledge articles of a
ticket
**Request Body:** {
"query": "database",
"collection": "knowledgearticles",
"count": 2
}
**Response:** {
"totalRecords": 2,
"documents": [
{
"docId": "KB0013083",
"docTitle": "Knowledge article for database instance",
"docSummary": "Knowledge article for database instance",
"sourceUrl":
"https://<SNOW_URL>/nav_to.do?uri=kb_knowledge.do?sys_id=123",
"docTags": []
},
{
"docId": "KB0013088",
"docTitle": "Knowledge Article for backup of Database",
"docSummary": "Knowledge Article for backup of Database",
"sourceUrl": "https://<SNOW
URL>/nav_to.do?uri=kb_knowledge.do?sys_id=1",
"docTags": []
}
]
}