---
title: "Create Course Content For Sub Chapitre"
method: POST
path: "/admin/holiday-courses/subchapitres/{sub_chapitre_id}/create-course-content"
tags: ["Admin - Holiday Courses"]
---

# Create Course Content For Sub Chapitre

`POST /admin/holiday-courses/subchapitres/{sub_chapitre_id}/create-course-content`

Create course content for a holiday course sub-chapitre by uploading images.
This endpoint:
1. Validates that the sub-chapitre exists and doesn't already have content
2. Uploads the files to S3
3. Creates a new Course document with status "UPLOADING"
4. Links the new course to the sub-chapitre
5. Starts a background task to process the course content

Only accessible by admin users.

## Path parameters

- `sub_chapitre_id` string, required — The ID of the holiday course sub-chapitre

## Request body

- RoutersAdminHolidayCoursesBatchFileUploadRequest — Request model for batch file upload with course generation options
  - `files` RoutersAdminHolidayCoursesFileUploadRequest[], required
    - `file_content` string, required
    - `file_name` string, required
    - `content_type` string, required
  - `depth` integer
  - `include_qcm` boolean
  - `include_flashcards` boolean
  - `include_illustrations` boolean
  - `include_excellence_tips` boolean

## Response `200`

Successful Response

- RoutersAdminHolidayCoursesCourseUploadResponse — Response model for course creation
  - `course_id` string, required
  - `status` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/a5af9b3b34f7?raw)
