Quizmaster organizes content in a strict four-level hierarchy: Subjects contain Chapters, Chapters contain Quizzes, and Quizzes contain Questions. You must create each level before the next can be added — for example, you cannot create a chapter without an existing subject. This page walks through creating each content type in order, and explains how to edit or delete existing content.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/geeky-hamster/Quizmaster/llms.txt
Use this file to discover all available pages before exploring further.
Content hierarchy
Creating content
Follow these steps in order when setting up new content from scratch.Create a subject
Navigate to Subjects at
Click Save to create the subject. It will appear in the subjects list and become available when creating chapters.
/admin/subjects and click Add subject.Fill in the following fields:| Field | Required | Description |
|---|---|---|
name | Yes | Display name for the subject (e.g., Mathematics) |
description | No | Optional summary shown to users |
Create a chapter
Navigate to Chapters at
Select the subject from the dropdown, enter a name, and click Save.
/admin/chapters and click Add chapter.Fill in the following fields:| Field | Required | Description |
|---|---|---|
subject_id | Yes | The subject this chapter belongs to |
name | Yes | Display name for the chapter (e.g., Algebra) |
description | No | Optional summary shown to users |
Create a quiz
Navigate to Quizzes at
Click Save to create the quiz.
/admin/quizzes and click Add quiz.Fill in the following fields:| Field | Required | Description |
|---|---|---|
| Chapter | Yes | The chapter this quiz belongs to |
| Name | Yes | Display name for the quiz |
| Time limit | Yes | Time limit in minutes (enter a number, e.g., 30) |
| Description | No | Optional notes or remarks about the quiz |
time_duration is stored and entered as a plain number representing minutes. For example, enter 30 for a 30-minute quiz.Add questions to a quiz
From the Quizzes list at
Click Save to add the question. Repeat for each question in the quiz.
/admin/quizzes, click the Questions button next to the quiz you want to populate. This opens /admin/quizzes/:id/questions.Click Add question and fill in the following fields:| Field | Required | Description |
|---|---|---|
question_statement | Yes | The question text shown to users |
option1 | Yes | First answer option |
option2 | Yes | Second answer option |
option3 | Yes | Third answer option |
option4 | Yes | Fourth answer option |
correct_option | Yes | The number of the correct option (1, 2, 3, or 4) |
correct_option is 1-based. Enter 1 if the first option is correct, 2 for the second, and so on. Make sure the number you enter matches the option that contains the correct answer.Editing existing content
Each content list (subjects, chapters, quizzes, questions) shows an Edit button next to each item. Click it to open the edit form, make your changes, and click Save. All fields editable during creation are also editable here. Editing a subject or chapter does not affect the items nested under it. Changing a quiz’schapter_id moves it to a different chapter.
Deleting content
Each item in a content list has a Delete button. Deleting a subject, chapter, or quiz also removes all content nested beneath it:- Deleting a subject removes all of its chapters, the quizzes in those chapters, and all questions in those quizzes.
- Deleting a chapter removes all of its quizzes and their questions.
- Deleting a quiz removes all of its questions and all score records for that quiz.
- Deleting a question only removes that question; other questions and the quiz remain.