Ingest Batch
Ingest a batch of files at once.
Process multiple files in a single request (e.g., importing a folder). Returns a summary of how many files were ingested, skipped as duplicates, or failed.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/sources/ingest/batch" \ -H "Content-Type: application/json" \ -d '{ "files": [ { "file_path": "string" } ] }'{
"folder_name": "",
"total_ingested": 0,
"total_duplicates": 0,
"total_errors": 0,
"results": [
{
"source_id": "string",
"original_name": "string",
"lifecycle_state": "string",
"is_duplicate": false,
"message": ""
}
],
"message": ""
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}