Ingest Folder Upload
Ingest client-uploaded folder files via multipart.
This is the remote/web-safe folder API. The server never reads a client
filesystem path; clients upload file bytes and provide folder-relative
paths in file_manifest.
Space-scoped: writes sources to space_id, defaulting to the canonical
default space when omitted.
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/sources/ingest/folder-upload" \ -F files="[ \"string\" ]" \ -F folder_name="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": {} } ]}