Data Sources
Create Data Source
Creates a new data source and associates it with a knowledge engine
POST
Body
multipart/form-data
The file to upload
JSON string containing data source metadata.
Example:
{
"name": "Annual Report 2023",
"type": "file",
"knowledge_engine_id": "kng_abc123xyz789"
}
Example:
"{\"name\":\"Annual Report 2023\",\"type\":\"file\",\"notes\":{\"category\":\"financial\"},\"knowledge_engine_id\":\"kng_abc123xyz789\"}"
Response
201
application/json
Data source created successfully
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