Knowledge_base_nodes
Knowledge base node related APIs
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
POST /webapi/v2/knowledge_base_nodes/move/bulk HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 73
{
"targetFolderId": "text",
"nodeIds": [
"text"
],
"keepCurrentPermission": true
}
OK
{
"moved_kb_node_ids": [
"text"
],
"failed_kb_node_ids": [
"text"
]
}
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
The file name of the knowledge base
The hashtags of the knowledge base
The target folder ID of the knowledge base
The overwrite folder access flag of the knowledge base
false
The access permission groups of the knowledge base
[]
The access agents of the knowledge base
[]
The access user filters of the knowledge base
[]
The view access to agent flag of the knowledge base
false
The view access to user flag of the knowledge base
false
OK
POST /webapi/v2/knowledge_base_nodes/upload HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 382
{
"fileName": "text",
"hashtags": [
"text"
],
"targetFolderId": "text",
"isOverwriteFolderAccess": false,
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"accessType": "order_1_editor"
}
],
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessUserFilters": [
{
"variableName": "CUSTOMER_ID",
"value": "text"
}
],
"viewAccessToAgent": false,
"viewAccessToUser": false,
"file": "binary"
}
OK
[
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
}
]
Upload Documents from S3
This API lets you transfer documents stored in S3 into Cognitive Search. They will appear as Knowledge Base documents in the dashboard. Available file formats are same in the section of Upload Documents.
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
Request model for uploading files from S3.
The file name of the knowledge base
The hashtags of the knowledge base
The target folder ID of the knowledge base
The overwrite folder access flag of the knowledge base
false
The access permission groups of the knowledge base
[]
The access agents of the knowledge base
[]
The access user filters of the knowledge base
[]
The view access to agent flag of the knowledge base
false
The view access to user flag of the knowledge base
false
The bucket object path of the file
Your S3 Secret Key.
Your S3 Access Key.
AWS IAM Role ARN for access
External ID for AWS IAM Role
OK
POST /webapi/v2/knowledge_base_nodes/upload_from_aws_s3 HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 482
{
"fileName": "text",
"hashtags": [
"text"
],
"targetFolderId": "text",
"isOverwriteFolderAccess": false,
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"accessType": "order_1_editor"
}
],
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessUserFilters": [
{
"variableName": "CUSTOMER_ID",
"value": "text"
}
],
"viewAccessToAgent": false,
"viewAccessToUser": false,
"bucketObjectPath": "text",
"awsSecretKey": "text",
"awsAccessKey": "text",
"awsIamRoleArn": "text",
"awsExternalId": "text"
}
OK
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
}
Upload Documents from Azure Blob Storage
This API lets you transfer documents stored in Azure Blob Storage into Cognitive Search. They will appear as Knowledge Base documents in the dashboard. Available file formats are same in the section of Upload Documents.
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
Request model for uploading files from Azure Blob Storage.
The file name of the knowledge base
The hashtags of the knowledge base
The target folder ID of the knowledge base
The overwrite folder access flag of the knowledge base
false
The access permission groups of the knowledge base
[]
The access agents of the knowledge base
[]
The access user filters of the knowledge base
[]
The view access to agent flag of the knowledge base
false
The view access to user flag of the knowledge base
false
The container blob path of the file
Your Azure Blob Storage connection string.
OK
POST /webapi/v2/knowledge_base_nodes/upload_from_azure_blob HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 424
{
"fileName": "text",
"hashtags": [
"text"
],
"targetFolderId": "text",
"isOverwriteFolderAccess": false,
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"accessType": "order_1_editor"
}
],
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessUserFilters": [
{
"variableName": "CUSTOMER_ID",
"value": "text"
}
],
"viewAccessToAgent": false,
"viewAccessToUser": false,
"containerBlobPath": "text",
"azureConnectionString": "text"
}
OK
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
}
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
{"filter_":null,"filter":null,"order":"updated_at_desc","limit":10,"after":null}
OK
POST /webapi/v2/knowledge_base_nodes/search HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 974
{
"filter_": {
"parentFolderIds": [
"text"
],
"searchTerm": "text",
"hashtags": [
"text"
],
"hashtagsSearchOperator": "text",
"combinedHashtags": [
[
"text"
]
],
"combinedHashtagsOperator": "text",
"excludingHashtags": [
"text"
],
"excludingHashtagsSearchOperator": "text",
"processState": [
"initializing"
],
"status": [
"on"
],
"nodeType": [
"file"
],
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"ownership": [
"personal"
],
"ancestorIds": [
"text"
],
"hasFaqCandidates": true,
"sourceTypes": [
"onedrive"
]
},
"filter": {
"parentFolderIds": [
"text"
],
"searchTerm": "text",
"hashtags": [
"text"
],
"hashtagsSearchOperator": "text",
"combinedHashtags": [
[
"text"
]
],
"combinedHashtagsOperator": "text",
"excludingHashtags": [
"text"
],
"excludingHashtagsSearchOperator": "text",
"processState": [
"initializing"
],
"status": [
"on"
],
"nodeType": [
"file"
],
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"ownership": [
"personal"
],
"ancestorIds": [
"text"
],
"hasFaqCandidates": true,
"sourceTypes": [
"onedrive"
]
},
"order": "updated_at_desc",
"limit": 10,
"after": "text"
}
OK
{
"result": {
"nodes": [
{
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
],
"cursor": "text"
}
}
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
10
OK
POST /webapi/v2/knowledge_base_nodes/content_search HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"searchTerm": "text",
"limit": 10,
"after": "text",
"folderIds": [
"text"
]
}
OK
{
"result": {
"nodes": [
{
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
],
"cursor": "text"
}
}
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
GET /webapi/v2/knowledge_base_nodes/{node_id} HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
OK
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
}
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
The hashtags of the knowledge base node
The target folder ID of the knowledge base node
The overwrite folder access flag of the knowledge base node
false
The access permission groups of the knowledge base node
[]
The access agents of the knowledge base node
[]
The access user filters of the knowledge base node
[]
The view access to agent flag of the knowledge base node
false
The view access to user flag of the knowledge base node
false
OK
PUT /webapi/v2/knowledge_base_nodes/{node_id} HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 379
{
"title": "text",
"hashtags": [
"text"
],
"target_folder_id": "text",
"is_overwrite_folder_access": false,
"access_permission_groups": [
{
"permissionGroupId": "text",
"accessType": "order_1_editor"
}
],
"access_agents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"access_user_filters": [
{
"variableName": "CUSTOMER_ID",
"value": "text"
}
],
"view_access_to_agent": false,
"view_access_to_user": false
}
OK
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
}
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
DELETE /webapi/v2/knowledge_base_nodes/{node_id} HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
OK
No content
Was this helpful?