Export Templates

Upload Export Template

Analyze an uploaded Word/PDF document and store it as the teacher's export template for that document type (replaces the previous one).

post/teacher/export-templates

Request body

doc_type'cours' | 'devoir' | 'evaluation' required
file_contentstring required
file_namestring required
content_typestring required

Response

Successful Response

doc_type'cours' | 'devoir' | 'evaluation' required
source_filenamestring required
source_format'docx' | 'pdf' required
body_fontstring nullable required
body_size_ptnumber nullable required
justifyboolean required
heading_boldboolean required
heading_underlineboolean required
margins_cmnumber[] required

Top, right, bottom, left margins in centimeters.

header_kind'table' | 'banner' nullable required
instructionsstring[] required
slot_samplesobject required
warningsstring[] required
llm_refinedboolean required
created_atstring date-time nullable required
updated_atstring date-time nullable required

Changes