v3

latestOpenAPI 3.1.02026-08-01101194245.5 KB
imports

Analyze Import

Analyze import request to determine add/update/skip status for each document.

This endpoint receives file metadata (not file contents) from the frontend and analyzes which documents should be added, updated, skipped, or failed based on existing documents in the workspace.

Args: analysis_request: Request containing workspace_id and documents metadata db: Database session current_user: Authenticated user

Returns: ImportAnalysisResponse with document statuses and summary

Raises: HTTPException: If workspace doesn't exist or other validation errors occur

post/imports/analyze

Request body

workspace_idstring uuid required

Target workspace ID

documentsobject required

Reference key to file metadata mapping

Response

Successful Response

documentsobject required

Reference key to document info mapping