Skip to main content
PATCH
Update a datasource

Authorizations

Authorization
string
header
required

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

Path Parameters

knowledge_id
string
required

The unique identifier of the knowledge base

datasource_id
string
required

The unique identifier of the datasource.

Body

application/json
display_name
string
required
Minimum string length: 1

Response

200 - application/json

Datasource successfully updated

display_name
string
required

The display name of the datasource. Normally the name of the uploaded file

status
enum<string>
required
Available options:
pending,
processing,
completed,
failed,
queued
created
string
required

The date and time the datasource was created

updated
string
required

The date and time the datasource was updated

knowledge_id
string
required

The unique identifier of the knowledge base

chunks_count
number
required

The number of chunks in the datasource

_id
string<ulid>
default:01KTRG2897RVTSG9ME1FA7K0KA
read-only

The unique identifier of the data source

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
description
string | null

The description of the knowledge base

file_id
string | null

The unique identifier of the file used to create the datasource.

created_by_id
string<uuid> | null
read-only

The user ID of the creator of the knowledge base

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
update_by_id
string<uuid> | null
read-only

The user ID of the last user who updated the knowledge base

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$