Teacher

Upload Student List

Parse a CSV/XLSX file and return the list of students for preview. Checks for duplicates against existing students and pending students. Does NOT create pending students yet - that happens on confirm.

With use_ai=True, the AI fallback reads the raw rows (capped at 60 lines) instead of the deterministic parser — for exports whose shape we don't recognize.

post/teacher/classes/{class_id}/upload-student-list

Path parameters

class_idstring required

Request body

file_contentstring required
file_namestring required
content_typestring required
use_aiboolean

Response

Successful Response

warningsstring[] required
ai_availableboolean
used_aiboolean

Changes