Admin - Holiday Courses

Create Course Content From Tex

Create a new course from raw LaTeX content.

This endpoint:

  1. Parses LaTeX content into structured CourseUnit objects using AI
  2. Creates a Course document with holiday_workbook source type
  3. Links the course to the specified HolidayCourseSubChapitre
  4. Generates additional QCM/Flashcard units (background task)
  5. Generates global revision flashcards (background task)
post/admin/holiday-courses/subchapitres/{sub_chapitre_id}/create-course-from-tex

Path parameters

sub_chapitre_idstring required

The ID of the holiday course sub-chapitre

The ID of the holiday course sub-chapitre

Request body

tex_contentstring required
include_qcm_unitboolean
include_flashcards_unitboolean

Response

Successful Response

course_idstring required
statusstring required
messagestring nullable

Changes