uploadDocument
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.knowledgebase/FluxbaseKnowledgeBase/uploadDocument
uploadDocument
Section titled “uploadDocument”[jvm]
suspend fun uploadDocument(kbId: String, fileName: String, content: ByteArray, mimeType: String, metadata: Map<String, String>? = null): FluxbaseResponse<KnowledgeBaseDocument>
POST /api/v1/ai/knowledge-bases/:id/documents/upload — upload a file as a multipart form document. The multipart body is assembled manually (the HTTP transport has no multipart helper); error statuses throw inside the transport and are converted by fluxbaseResponse.