Get references
Question
Question Message
API Reference
Datasets
- GETGet datasets
- POSTCreate dataset
- GETGet dataset
- PUTUpdate dataset
- DELDelete dataset
- GETGet dataset files counts
- GETGet dataset files
- PUTUpdate dataset file
- POSTAdd file to dataset
- DELDelete dataset file
- PUTRefresh dataset file list
- PUTRefresh dataset upload file list
- PUTRefresh dataset upload file list
- POSTAdd link to dataset
- POSTUpdate Dataset Configs
- POSTBind dataset to ai
- DELUnbind dataset to ai
- GETGet ai datasets
- POSTAdd Lark files to dataset by appid, app secret and share urls
- GETget integration rules
Datasets
Update dataset file
Update dataset file
PUT
/
v1
/
datasets
/
{dataset_id}
/
files
Copy
curl --request PUT \
--url https://api.gbase.ai/v1/datasets/{dataset_id}/files \
--header 'Content-Type: application/json' \
--data '{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"filename": "<string>",
"file_status": "ready",
"file_lang": "<string>",
"file_size": 0,
"token_count": 0,
"characters_count": 0,
"failed_reason": "<string>",
"resources": "<any>",
"source_type": "<string>",
"learn_type": 100,
"lark_file": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"token": "<string>",
"parent_token": "<string>",
"created_time": "<string>",
"modified_time": "<string>",
"owner_id": "<string>",
"url": "<string>"
}
}'
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"filename": "<string>",
"file_type": "<string>",
"file_status": "ready",
"file_size": 0,
"token_count": 0,
"characters_count": 0,
"failed_reason": "<string>",
"index_ids": "<any>",
"resources": "<any>",
"content_hash": "<string>",
"source_type": "<string>",
"learn_type": 100,
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tokens": 123,
"lark_file": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"token": "<string>",
"parent_token": "<string>",
"created_time": "<string>",
"modified_time": "<string>",
"owner_id": "<string>",
"url": "<string>",
"vector_file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Copy
curl --request PUT \
--url https://api.gbase.ai/v1/datasets/{dataset_id}/files \
--header 'Content-Type: application/json' \
--data '{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"filename": "<string>",
"file_status": "ready",
"file_lang": "<string>",
"file_size": 0,
"token_count": 0,
"characters_count": 0,
"failed_reason": "<string>",
"resources": "<any>",
"source_type": "<string>",
"learn_type": 100,
"lark_file": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deleted_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"token": "<string>",
"parent_token": "<string>",
"created_time": "<string>",
"modified_time": "<string>",
"owner_id": "<string>",
"url": "<string>"
}
}'
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"filename": "<string>",
"file_type": "<string>",
"file_status": "ready",
"file_size": 0,
"token_count": 0,
"characters_count": 0,
"failed_reason": "<string>",
"index_ids": "<any>",
"resources": "<any>",
"content_hash": "<string>",
"source_type": "<string>",
"learn_type": 100,
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tokens": 123,
"lark_file": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>",
"token": "<string>",
"parent_token": "<string>",
"created_time": "<string>",
"modified_time": "<string>",
"owner_id": "<string>",
"url": "<string>",
"vector_file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
Assistant
Responses are generated using AI and may contain mistakes.