Knowledge_base_nodes
Knowledge base node related APIs
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
The target folder ID of the knowledge base node
The node IDs of the knowledge base node
The keep current permission of the knowledge base node
正常に移動されました。
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"
]
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
ドキュメントのファイル名
ドキュメントのハッシュタグ
ドキュメントのターゲットフォルダーID
ドキュメントの上書きフォルダアクセスフラグ
falseドキュメントのアクセス許可グループ
[]ドキュメントのアクセスエージェント
[]ドキュメントのアクセスユーザーフィルター
[]ドキュメントのエージェントフラグへの閲覧アクセス
falseドキュメントのユーザーフラグへの表示アクセス
falseドキュメントの解析処理を向上させるためにレイアウト処理を使用するかどうかを指定します。プロジェクトでこの機能が許可されている場合にのみ使用されます。 機能の有効化が必要な場合は担当のカスタマーサクセスまでお問い合わせください。
trueドキュメントの解析処理を向上させるためにimage description処理を使用するかどうかを指定します。プロジェクトでこの機能が許可されている場合にのみ使用されます。 機能の有効化が必要な場合は担当のカスタマーサクセスまでお問い合わせください。
trueWhether to use OCR for document processing
falseList of notification hooks to trigger on document ingestion events
成功
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: 538
{
"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,
"useLayout": true,
"useImageDescription": true,
"useOcr": false,
"properties": [
{
"key": "text",
"value": "text"
}
],
"notificationHooks": [
"email_on_ingestion_complete"
],
"file": "binary"
}成功
[
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"createdBy": {
"id": "text",
"email": "text",
"firstName": "text",
"lastName": "text"
},
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
],
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}
}
]S3からドキュメントをアップロードします。このAPIを使用すると、S3に保存されているドキュメントをAlliのドキュメントメニューに転送することができます。 利用可能なファイル形式は、「ドキュメントのアップロード」セクションと同じです。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
S3からファイルをアップロードするためのリクエストモデル。
ファイル名
ハッシュタグ
ターゲットフォルダーID
フォルダーのアクセス権限上書きフラグ
falseアクセス許可グループ
[]アクセス管理者
[]アクセスユーザーフィルター
[]管理者閲覧権限フラグ
falseユーザーの閲覧権限フラグ
falseドキュメントの解析処理を向上させるためにレイアウト処理を使用するかどうかを指定します。プロジェクトでこの機能が許可されている場合にのみ使用されます。 機能の有効化が必要な場合は担当のカスタマーサクセスまでお問い合わせください。
trueドキュメントの解析処理を向上させるためにimage description処理を使用するかどうかを指定します。プロジェクトでこの機能が許可されている場合にのみ使用されます。 機能の有効化が必要な場合は担当のカスタマーサクセスまでお問い合わせください。
trueWhether to use OCR for document processing
falseList of notification hooks to trigger on document ingestion events
ファイルのバケットオブジェクトパス
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: 638
{
"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,
"useLayout": true,
"useImageDescription": true,
"useOcr": false,
"properties": [
{
"key": "text",
"value": "text"
}
],
"notificationHooks": [
"email_on_ingestion_complete"
],
"bucketObjectPath": "text",
"awsSecretKey": "text",
"awsAccessKey": "text",
"awsIamRoleArn": "text",
"awsExternalId": "text"
}正常に完了しました。
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"createdBy": {
"id": "text",
"email": "text",
"firstName": "text",
"lastName": "text"
},
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
],
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}
}Azure Blob Storageからドキュメントをアップロード
このAPIを使用すると、Azure Blob Storageに保存されているドキュメントをCognitive Searchに転送することができます。
これらはダッシュボード上にナレッジベースのドキュメントとして表示されます。
使用可能なファイル形式は、「ドキュメントのアップロード」セクションと同じです。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
Azure Blob Storageからファイルをアップロードするためのリクエストモデル。
ファイル名
ハッシュタグ
ターゲットフォルダーID
フォルダのアクセス権限の上書きフラグ
falseアクセス許可グループ
[]アクセス許可管理者
[]アクセスユーザーフィルター
[]管理者の閲覧権限
falseユーザーの閲覧権限
falseドキュメントの解析処理を向上させるためにレイアウト処理を使用するかどうかを指定します。プロジェクトでこの機能が許可されている場合にのみ使用されます。 機能の有効化が必要な場合は担当のカスタマーサクセスまでお問い合わせください。
trueドキュメントの解析処理を向上させるためにimage description処理を使用するかどうかを指定します。プロジェクトでこの機能が許可されている場合にのみ使用されます。 機能の有効化が必要な場合は担当のカスタマーサクセスまでお問い合わせください。
trueWhether to use OCR for document processing
falseList of notification hooks to trigger on document ingestion events
ファイルのコンテナブロブパス
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: 580
{
"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,
"useLayout": true,
"useImageDescription": true,
"useOcr": false,
"properties": [
{
"key": "text",
"value": "text"
}
],
"notificationHooks": [
"email_on_ingestion_complete"
],
"containerBlobPath": "text",
"azureConnectionString": "text"
}了解しました。
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"createdBy": {
"id": "text",
"email": "text",
"firstName": "text",
"lastName": "text"
},
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
],
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
{"filter_":null,"filter":null,"order":"updated_at_desc","limit":10,"after":null,"offset":null}成功
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: 985
{
"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",
"offset": 1
}成功
{
"result": {
"nodes": [
{
"id": "text",
"name": "text",
"createdAt": 1,
"createdBy": {
"id": "text",
"email": "text",
"firstName": "text",
"lastName": "text"
},
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
],
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}
],
"cursor": "text",
"totalFileCount": 1,
"totalFolderCount": 1
}
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
The search term of the knowledge base node
The limit of the knowledge base node
10The after of the knowledge base node
The folder IDs of the knowledge base node
The search scope of the knowledge base node
both成功しました。
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: 89
{
"searchTerm": "text",
"limit": 10,
"after": "text",
"folderIds": [
"text"
],
"searchScope": "both"
}成功しました。
{
"result": {
"nodes": [
{
"id": "text",
"name": "text",
"createdAt": 1,
"createdBy": {
"id": "text",
"email": "text",
"firstName": "text",
"lastName": "text"
},
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
],
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}
],
"cursor": "text",
"totalFileCount": 1,
"totalFolderCount": 1
}
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
The search terms for page content search
The folder IDs to search within
The knowledge base IDs to search within
The hashtags to filter by
The hashtags operator (AND/OR)
ORThe hashtags to exclude
The exclude hashtags operator (AND/OR)
ORThe number of top results to return
1Whether to merge content from the same page
falseOK
POST /webapi/v2/knowledge_base_nodes/page_content_search HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 206
{
"searchTerms": [
"text"
],
"folderIds": [
"text"
],
"knowledgeBaseIds": [
"text"
],
"hashtags": [
"text"
],
"hashtagsOperator": "OR",
"excludeHashtags": [
"text"
],
"excludeHashtagsOperator": "OR",
"topN": 1,
"mergeSamePage": false
}OK
{
"results": [
{
"kbId": "text",
"title": "text",
"text": "text",
"pageNo": 1
}
]
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
成功しました
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,
"createdBy": {
"id": "text",
"email": "text",
"firstName": "text",
"lastName": "text"
},
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
],
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
ナレッジベースノードのタイトル
ハッシュタグ
アクセス権限の上書きフラグ
アクセス許可グループ
アクセス管理者
アクセスユーザーフィルター
管理者の閲覧権限
ユーザーの閲覧権限
成功しました
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: 395
{
"title": "text",
"hashtags": [
"text"
],
"is_overwrite_folder_access": true,
"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": true,
"view_access_to_user": true,
"properties": [
{
"key": "text",
"value": "text"
}
]
}成功しました
{
"result": {
"id": "text",
"name": "text",
"createdAt": 1,
"createdBy": {
"id": "text",
"email": "text",
"firstName": "text",
"lastName": "text"
},
"updatedAt": 1,
"nodeType": "text",
"parentFolder": {
"id": "text",
"name": "text"
},
"breadcrumbs": [
{
"id": "text",
"name": "text"
}
],
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
削除に成功しました
No content
DELETE /webapi/v2/knowledge_base_nodes/{node_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
削除に成功しました
No content
Get preview of a knowledge base node with HTML and PDF information.
Args: request: HTTP request object node_id: Global ID of the knowledge base node page_no: Page number to preview (default: 1)
Returns: KnowledgeBasePreviewResponse containing HTML and PDF preview data
認証用のAPIキー
1任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
OK
GET /webapi/v2/knowledge_base_nodes/{node_id}/preview HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
OK
{
"html": "text",
"pdfUrl": "text",
"imageUrl": "text",
"previewUrl": "text",
"totalPreviewCount": 0
}Get text content of a knowledge base node from parsed pages.
Args: request: HTTP request object node_id: Global ID of the knowledge base node limit: Optional maximum number of pages to return offset: Optional number of pages to skip from the beginning
Returns: HttpResponse containing plain text content from KnowledgeBaseParsedPage
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
OK
No content
GET /webapi/v2/knowledge_base_nodes/{node_id}/text HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
OK
No content
Download original file of a knowledge base node.
Args: request: HTTP request object node_id: Global ID of the knowledge base node
Returns: FileResponse containing the original file for download
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
OK
No content
GET /webapi/v2/knowledge_base_nodes/{node_id}/download HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
OK
No content
Last updated
Was this helpful?