Knowledge Engines
Data Sources
Workflows
Tool Runs
Data Sources
Create Data Source Batch
Creates multiple data sources in a single request
POST
/
api
/
v1
/
data-sources
/
batch
Copy
curl --request POST \
--url https://api.getdecisional.ai/api/v1/data-sources/batch \
--header 'Content-Type: multipart/form-data' \
--form 'files[]=[
"<file1 binary>",
"<file2 binary>"
]' \
--form 'data=[{"name":"Doc 1","type":"file","knowledge_engine_id":"kng_abc123xyz789"},{"name":"Doc 2","type":"file","knowledge_engine_id":"kng_abc123xyz789"}]'
Copy
[
{
"id": "ds_abc123xyz789",
"name": "Annual Report 2023",
"type": "file",
"status": "processed",
"notes": {
"category": "financial"
},
"knowledge_engine_id": "kng_abc123xyz789",
"created_at": 1679644800
}
]
Body
multipart/form-data
Response
202
application/json
Data sources accepted for processing
The response is of type object[]
.
Copy
curl --request POST \
--url https://api.getdecisional.ai/api/v1/data-sources/batch \
--header 'Content-Type: multipart/form-data' \
--form 'files[]=[
"<file1 binary>",
"<file2 binary>"
]' \
--form 'data=[{"name":"Doc 1","type":"file","knowledge_engine_id":"kng_abc123xyz789"},{"name":"Doc 2","type":"file","knowledge_engine_id":"kng_abc123xyz789"}]'
Copy
[
{
"id": "ds_abc123xyz789",
"name": "Annual Report 2023",
"type": "file",
"status": "processed",
"notes": {
"category": "financial"
},
"knowledge_engine_id": "kng_abc123xyz789",
"created_at": 1679644800
}
]
Assistant
Responses are generated using AI and may contain mistakes.