Generate Quiz
Quiz API
Generate Quiz
Generate an AI-powered quiz for a specific course chapter (Educator only)
POST
Generate Quiz
Authentication
This endpoint requires educator authentication. Include the authorization token in your request headers.Request Body
The unique identifier of the course
The unique identifier of the chapter within the course
Response
Indicates whether the quiz generation was successful
The generated quiz object
Error message if success is false
Code Examples
Response Example
Error Responses
Notes
- The endpoint uses AI to generate 10 multiple-choice questions based on the chapter’s lectures
- If a quiz already exists for the chapter, it will be replaced with the newly generated one
- Questions are designed to test conceptual understanding of the chapter topics
- Each question has exactly 4 options with one correct answer
- The quiz generation process analyzes all lecture titles within the chapter to create relevant questions