PUT
/
v1
/
datasets
/
{dataset_id}
/
files
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>"
  }
}'
{
  "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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.