ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Retrieve details of a specific document embedding.
This endpoint returns detailed information about a specific document embedding identified by its ID.
Args: request: The HTTP request. org: Organization key identifier. document_id: The ID of the document embedding to retrieve.
Returns: Response: Detailed information about the document embedding.
Raises: NotFound: If the specified document embedding does not exist.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/
https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'
trained
- Trainedfailed
- Failedpending
- Pendinguntrained
- Untrained
trained
- Trainedfailed
- Failedpending
- Pendinguntrained
- Untrained
public
- Publicprivate
- Private
public
- Publicprivate
- Private
List of patterns that the crawler should use to match urls. Patterns may be a glob pattern or a full regex pattern. Indicate the specified type in crawler_use_glob_matching
.
{ "id": 1, "document_name": "CareerClustersPathways_0", "document_type": "pdf", "pathway": "test-pathway", "url": "https://example.com/files/CareerClustersPathways_0.pdf", "tokens": 46578, "platform_key": "main", "access": "public", "is_trained": true }
Request
Update a specific document embedding.
This endpoint allows updating various properties of a document embedding, including its name, type, pathway, and training status.
Args: request: The HTTP request containing the updated document data. org: Organization key identifier. document_id: The ID of the document embedding to update.
Returns: Response: The updated document embedding information.
Raises: BadRequest: If the provided data is invalid. NotFound: If the specified document embedding does not exist.
- multipart/form-data
- application/x-www-form-urlencoded
- application/json
The patterns that the crawler should use to match urls. Patterns may be a glob pattern or a full regex pattern. Indicate the specified type in crawler_use_glob_matching
.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/
https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: multipart/form-data' \
-F document_name=string \
-F document_type=string \
-F pathway=string \
-F url=string \
-F train=true \
-F crawler_max_depth=0 \
-F crawler_max_pages_limit=0 \
-F crawler_max_concurrency=0 \
-F crawler_match_patterns=string \
-F crawler_use_glob_matching=true \
-F access=public \
-F google_drive_auth_data=null \
-F dropbox_auth_data=null
trained
- Trainedfailed
- Failedpending
- Pendinguntrained
- Untrained
trained
- Trainedfailed
- Failedpending
- Pendinguntrained
- Untrained
public
- Publicprivate
- Private
public
- Publicprivate
- Private
List of patterns that the crawler should use to match urls. Patterns may be a glob pattern or a full regex pattern. Indicate the specified type in crawler_use_glob_matching
.
{ "id": 1, "document_name": "Updated Document Name", "document_type": "pdf", "pathway": "test-pathway", "url": "https://example.com/files/updated_document.pdf", "tokens": 46578, "platform_key": "main", "is_trained": true, "access": "public" }
Request
Delete a specific document embedding.
This endpoint removes a document embedding from the system, including untraining it from any associated pathways.
Args: request: The HTTP request. org: Organization key identifier. document_id: The ID of the document embedding to delete.
Returns: Response: An empty response with a 204 status code if successful.
Raises: NotFound: If the specified document embedding does not exist.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/
https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'