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-ja.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
OK
POST /webapi/v2/knowledge_base_nodes/upload HTTP/1.1
Host: backend-ja.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"
}
]
}
}
]
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 Role ARN
AWS IAMロールの外部ID
正常に完了しました。
POST /webapi/v2/knowledge_base_nodes/upload_from_aws_s3 HTTP/1.1
Host: backend-ja.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
ファイルのコンテナブロブパス
Azure Blob Storageの接続文字列。
了解しました。
POST /webapi/v2/knowledge_base_nodes/upload_from_azure_blob HTTP/1.1
Host: backend-ja.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}
OK
POST /webapi/v2/knowledge_base_nodes/search HTTP/1.1
Host: backend-ja.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
成功しました。
POST /webapi/v2/knowledge_base_nodes/content_search HTTP/1.1
Host: backend-ja.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-ja.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-ja.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-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
削除に成功しました
No content
Was this helpful?