POST
/
api
/
v1
/
data-sources
/
batch

Body

multipart/form-data
data
string
required

JSON string containing an array of data sources metadata.

Example:

[{"name":"Doc 1","type":"file","knowledge_engine_id":"kng_abc123xyz789"},{"name":"Doc 2","type":"file","knowledge_engine_id":"kng_abc123xyz789"}]
files[]
file[]
required

Array of files to upload

Response

202 - application/json
created_at
integer

Unix timestamp when this entity was created

id
string

Unique identifier for the data source

knowledge_engine_id
string

ID of the knowledge engine this data source belongs to

name
string

Name of the data source

notes
object

Custom attributes and fields

status
enum<string>

Current status of the data source

Available options:
processing,
processed
type
enum<string>

Type of the data source

Available options:
file,
ticket