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
알겠습니다.
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
}
알겠습니다.
{
"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
지식베이스의 파일 이름
지식베이스의 해시태그
지식베이스의 대상 폴더 ID
지식베이스의 덮어쓰기 폴더 접근 플래그
false
지식베이스의 접근 권한 그룹
[]
지식베이스의 접근 에이전트
[]
지식베이스의 접근 유저 필터
[]
지식베이스의 에이전트 플래그 보기 접근 권한
false
지식베이스의 유저 플래그 보기 권한
false
알겠습니다.
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"
}
알겠습니다.
[
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
}
]
S3에서 문서 업로드
이 API를 사용하면 S3에 저장된 문서를 Cognitive Search로 전송할 수 있습니다. 대시보드에 지식베이스 문서로 나타납니다. 사용 가능한 파일 형식은 문서 업로드 섹션과 동일합니다.
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
S3에서 파일 업로드 요청 모델.
지식베이스의 파일 이름
지식베이스의 해시태그
지식베이스의 대상 폴더 ID
지식베이스의 폴더 덮어쓰기 접근 플래그
false
지식베이스의 접근 권한 그룹
[]
지식베이스의 접근 에이전트
[]
지식베이스의 접근 유저 필터
[]
지식베이스의 에이전트 플래그 보기 권한
false
지식베이스의 유저 플래그에 대한 보기 액세스
false
파일의 버킷 객체 경로
귀하의 S3 비밀 키.
귀하의 S3 액세스 키.
액세스를 위한 AWS IAM 역할 ARN
AWS IAM 역할의 외부 ID
알겠어
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"
}
알겠어
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
]
}
}
Azure Blob Storage에서 문서 업로드
이 API는 Azure Blob Storage에 저장된 문서를 Cognitive Search로 전송할 수 있습니다. 대시보드에 지식 베이스 문서로 표시됩니다. 사용 가능한 파일 형식은 문서 업로드 시 설명했던 내용과 동일합니다.
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
Azure Blob Storage에서 파일 업로드를 위한 요청 모델.
지식베이스의 파일 이름
지식베이스의 해시태그
지식베이스의 대상 폴더 ID
지식베이스의 덮어쓰기 폴더 접근 플래그
false
지식베이스의 접근 권한 그룹
[]
지식베이스의 액세스 에이전트
[]
지식베이스의 접근 유저 필터
[]
지식베이스의 에이전트 플래그 보기 권한
false
지식베이스의 유저 플래그에 대한 보기 권한
false
파일이 위치한 Blob 컨테이너 경로
유저의 Azure Blob Storage용 연결 문자열.
확인
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"
}
확인
{
"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}
좋아요
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"
}
좋아요
{
"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
알겠습니다.
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"
]
}
알겠습니다.
{
"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
알겠습니다.
GET /webapi/v2/knowledge_base_nodes/{node_id} HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
알겠습니다.
{
"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
지식베이스 노드의 해시태그
지식베이스 노드의 대상 폴더 ID
지식베이스 노드의 덮어쓰기 폴더 액세스 플래그
false
지식베이스 노드의 접근 권한 그룹
[]
지식베이스 노드의 접근 에이전트
[]
지식베이스 노드의 접근 유저 필터
[]
지식베이스 노드의 에이전트 플래그에 대한 보기 접근 권한
false
지식베이스 노드의 유저 플래그에 대한 보기 액세스
false
확인
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
}
확인
{
"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
알겠습니다
DELETE /webapi/v2/knowledge_base_nodes/{node_id} HTTP/1.1
Host: backend.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
알겠습니다
No content
Was this helpful?