Copy Correction

Upload Pdf

Upload a PDF or image file and process it in the background.

Streams the file to a temp file (never loads the full file into RAM), then kicks off a background task that converts pages one-by-one. The frontend polls GET /{session_id}/pdf-upload-status for progress.

upload_mode is per-upload, NOT per-session. A teacher can mix simple and copies-doubles uploads in the same session — each upload carries its own mode, and "copie_double" triggers a smart-split that only processes the pages from THIS batch (the smart-split background task receives the start_index of the first new page).

post/copy-correction/{session_id}/upload-pdf

Path parameters

session_idstring required

Response

Successful Response

{"stackTrail":"paths:/copy-correction/{session_id}/upload-pdf:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.