Admin - Holiday Courses

Link Exercise To Sub Chapitre

Link an existing holiday course exercise to a sub-chapitre.

This endpoint:

  1. Validates that both the sub-chapitre and exercise exist
  2. Prevents duplicate links (same exercise to same sub-chapitre)
  3. Manages the default flag (only one exercise can be default per sub-chapitre)
  4. Creates the HolidayCourseExerciseLink document

Only accessible by admin users.

post/admin/holiday-courses/subchapitres/{sub_chapitre_id}/link-exercise

Path parameters

sub_chapitre_idstring required

The ID of the holiday course sub-chapitre

The ID of the holiday course sub-chapitre

Request body

holiday_course_exercise_idstring required
is_default_for_sub_chapitreboolean nullable

Response

Successful Response

idstring required
sub_chapitre_idstring required
holiday_course_exercise_idstring required
is_default_for_sub_chapitreboolean required
created_atstring date-time required
exercise_titlestring nullable
exercise_difficultystring required
exercise_contentstring nullable
exercise_solutionstring nullable
exercise_hints1string nullable
exercise_hints2string nullable
exercise_hints3string nullable

Changes