Import new knowledge base documents
Last updated 4 months ago
Import one or multiple new documents
Documents uploaded
const response = await fetch('/workspaces/{workspaceId}/content/folders/{contentPath}/import', { method: 'POST', headers: { "Content-Type": "multipart/form-data" }, body: JSON.stringify({ "file": "binary" }), }); const data = await response.json();
{ "createdDocumentPaths": [ "text" ], "updatedDocumentPaths": [ "text" ] }