useUploadDocument
useUploadDocument():
UseMutationResult<UploadDocumentResponse,Error, {file:Blob|File|ArrayBuffer;filename:string;kbId:string;metadata?:Record<string,string>; },unknown>
Hook to upload a file document to a knowledge base
Returns
Section titled “Returns”UseMutationResult<UploadDocumentResponse, Error, { file: Blob | File | ArrayBuffer; filename: string; kbId: string; metadata?: Record<string, string>; }, unknown>