File metadata, upload, version, and move operations.
Upload file
Upload file › Request Body
fileknowledge_base_idfolder_idfilenamemetadataJSON object encoded as a string.
auto_parseWhen true, Bun asks the processing plane to queue parse after upload.
parse_optionsJSON object encoded as a string. Passed to the parse job.
Upload file › Responses
Fetch file metadata
path Parameters
fileIdFetch file metadata › Responses
File
File row plus its current version. Additional columns may appear; the properties below are the stable contract.
Soft-delete file
Marks the file as deleted so it no longer appears in file lists, knowledge-base indexes, or corpus browse APIs.
path Parameters
fileIdSoft-delete file › Responses
Deleted file
deletedfile_iddeleted_atRename file
Updates the active file display filename. Active filenames must be unique within the same organization, knowledgebase, and folder, case-insensitive. Soft-deleted files do not block reuse.
path Parameters
fileIdRename file › Responses
File
File row plus its current version. Additional columns may appear; the properties below are the stable contract.
Permanently delete file and generated artifacts
Hard-deletes the file record, file versions, processing jobs, parse/extract manifests, page versions, extraction rows, and managed filesystem root under DOCAI_ARTIFACT_ROOT. This also removes raw source, extraction JSON/markdown, page images, and crop images for every stored version.
path Parameters
fileIdPermanently delete file and generated artifacts › Responses
Permanently deleted file
deletedpermanentfile_idfilenameUpload new file version
path Parameters
fileIdUpload new file version › Request Body
filefilenamemetadataJSON object encoded as a string.
auto_parseWhen true, Bun queues parse for the new version.
parse_optionsJSON object encoded as a string. Passed to the parse job.
Upload new file version › Responses
File version
Move file to another knowledgebase/folder
path Parameters
fileIdMove file to another knowledgebase/folder › Request Body
knowledge_base_idfolder_idMove file to another knowledgebase/folder › Responses
Moved file
File row plus its current version. Additional columns may appear; the properties below are the stable contract.

