Admin - Holiday Courses

Update Course Structure

Update the entire course structure by replacing the units array.

This endpoint allows admins to:

  • Reorder units within a course
  • Modify unit titles, summaries, types, and content
  • Add or remove units
  • Update the complete course structure in a single operation

The endpoint validates that the course is a holiday_workbook type to ensure admins are only structurally editing these types of courses.

Only accessible by admin users.

put/admin/holiday-courses/courses/{course_id}/structure

Path parameters

course_idstring required

The ID of the course to update

The ID of the course to update

Request body

Response

Successful Response

_idstring
user_idstring required
is_teacher_courseboolean
folder_idstring nullable
titlestring required
subjectstring nullable
status'UPLOADING' | 'PROCESSING_IMAGES' | 'STRUCTURING' | 'GENERATING_CONTENT' | 'COMPLETED' | 'FAILED'
original_image_pathsstring[]
raw_content_blobstring nullable
generated_course_contentstring nullable
revision_deck_status'GENERATING' | 'COMPLETED' | 'FAILED' nullable
knowledge_quiz_status'GENERATING' | 'COMPLETED' | 'FAILED' nullable
error_messagestring nullable
warningsstring[] nullable
figures_cropobject nullable
processing_optionsobject nullable
source_type'student_upload' | 'teacher_assigned' | 'holiday_workbook' nullable
holiday_course_contextobject nullable
created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this endpoint across all 3 revisions of this API.