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

# Create Course Content From Urls For Sub Chapitre

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

Create course content for a holiday course sub-chapitre using image URLs.
This endpoint:
1. Validates that the sub-chapitre exists and doesn't already have content
2. Creates a new Course document with the provided URLs
3. Links the new course to the sub-chapitre
4. 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

- RoutersAdminHolidayCoursesCreateCourseFromUrlsRequest — Request model for creating course from image URLs
  - `image_urls` 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/a8ae0e0c0570?raw)
