Data Sources
Create Data Source Batch
Creates multiple data sources in a single request
POST
Body
multipart/form-data
Array of files to upload
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"}]
Example:
"[{\"name\":\"Doc 1\",\"type\":\"file\",\"knowledge_engine_id\":\"kng_abc123xyz789\"},{\"name\":\"Doc 2\",\"type\":\"file\",\"knowledge_engine_id\":\"kng_abc123xyz789\"}]"
Response
202
application/json
Data sources accepted for processing
Unique identifier for the data source
Example:
"ds_abc123xyz789"
Name of the data source
Example:
"Annual Report 2023"
Type of the data source
Available options:
file
, ticket
Example:
"file"
Current status of the data source
Available options:
processing
, processed
Example:
"processed"
Custom attributes and fields
Example:
{ "category": "financial" }
ID of the knowledge engine this data source belongs to
Example:
"kng_abc123xyz789"
Unix timestamp when this entity was created
Example:
1679644800