cURL
curl --request POST \ --url https://api.getdecisional.ai/api/v1/data-sources \ --header 'Content-Type: multipart/form-data' \ --form 'file=<binary file content>' \ --form 'data={"name":"Annual Report 2023","type":"file","notes":{"category":"financial"},"knowledge_engine_id":"kng_abc123xyz789"}'
{ "id": "ds_abc123xyz789", "name": "Annual Report 2023", "type": "file", "status": "processed", "notes": { "category": "financial" }, "knowledge_engine_id": "kng_abc123xyz789", "created_at": 1679644800 }
Creates a new data source and associates it with a knowledge engine
Data source created successfully
The response is of type object.
object