Teacher Course Structure

Add Unit With Ai

Add a new unit to the course using AI generation based on the provided prompt.

The new unit will be inserted at the specified position, or at the end if no position is given.

post/teacher/courses/{course_id}/units/add

Path parameters

course_idstring required

Request body

promptstring required

Instructions for the new unit content

positioninteger nullable

Position to insert the unit (0-based, None for end)

titlestring nullable

Optional title for the new unit

Response

Successful Response

statusstring required
messagestring required

Changes