Teacher Course Structure

Add Unit With Ai

Changed on

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

Request

  • Base URL: https://api.excellence-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.excellence-ai.com/teacher/courses/{course_id}/units/add
  • Auth: OAuth 2 (password, token URL api/login)

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

    • warning

      added the new excellence_course enum value to the // response property for the response status

    • warning

      added the new interactive enum value to the /////// response property for the response status

    • warning

      added the new video enum value to the /////// response property for the response status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property //// to the response with the status