Get KnowledgeTasks – KG
To get the list of knowledge Tasks along with the nodes.
Method
|
GET
|
Endpoint
|
https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en
|
Content Type
|
application/json
|
Authorization
|
auth: {{YOUR_JWT_ACCESS_TOKEN}}
See How to generate the JWT Token.
|
API Scope
|
- Bot Builder: Manage Knowledge Graph
- Admin Console: Manage Knowledge Graph
|
Path Parameters
PARAMETER
|
DESCRIPTION
|
MANDATE
|
host
|
The environment URL. For example, https://bots.kore.ai
|
Required
|
BotId
|
Bot ID or Stream ID can be accessed under General Settings on the Bot Builder.
|
Required
|
Query Parameters
PARAMETER
|
DESCRIPTION
|
MANDATE
|
language
|
The Bot language which is identified by the language acronym. For example, en for English and de for German. The user can set the default language of the bot.
|
Required
|
Sample Request
curl -X GET \
https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json'
Body Parameters
No body parameters are passed.
Sample Response
{
"_id": "5axxxxxxxxxxxxxxxxxxxxxx",
"createdOn": "2018-05-15T06:08:35.732Z",
"modifiedOn": "2020-01-03T07:54:13.583Z",
"state": "configured",
"editable": true,
"taxonomy": [
{
"parent": [],
"synonyms": [],
"isDummy": false,
"editLocked": false,
"nodeId": "bxxxxxxa-3xx5-4xxc-9xxd-0axxxxxxxxxx",
"label": "tarak",
"level": "l0",
"faqCount": 5
}
],
"nodesToPublish": [],
"publishRoot": false,
"version": "1.0",
"adminTaskStatus": "active",
"name": "tarak",
"description": "This is used to make ontology",
"isGraph": true,
"visibility": {
"namespace": "private",
"namespaceIds": [
"u-99xxxxxx-1xx6-5xx8-bxxf-acxxxxxxxxxx"
]
},
"streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx",
"metadata": {
"taxonomy": [
{
"nodeId": "bxxxxxxa-3xx5-4xxc-9xxd-0axxxxxxxxxx",
"label": "tarak",
"class": "bgblack",
"level": "l0",
"parent": [],
"synonyms": [],
"nodes": []
}
]
},
"createdBy": "u-9xxxxxx6-1xx6-5xx8-bxxf-acxxxxxxxxxx",
"lastModifiedBy": "u-9xxxxxx6-1xx6-5xx8-bxxf-axxxxxxxxxx9",
"botName": "tarak",
"language": "en",
"refId": "1xxxxxx9-3xx6-5xxf-8xx1-3dxxxxxxxxxx",
"__v": 0,
"deletedNodesToPublish": [],
"publishedOn": "2020-01-03T07:54:13.583Z",
"versionComment": null,
"parentId": "5exxxxxxxxxxxxxxxxxxxxx3",
"_resolve": [
"createdBy"
],
"lock": {
"islocked": "false"
},
"traitCount": 0,
"faqCount": 5
}