Subjects
Topics
Pick a subject above to see its topics.
Quizzes
Pick a topic above to see its quizzes.
Questions
Pick a quiz on the Quizzes tab, then come back here.
Bulk import
Expected JSON shape — just the questions array
[
{
"type": "mcq",
"question_text": "Which is the largest planet in the Solar System?",
"options": ["Earth", "Jupiter", "Saturn", "Neptune"],
"correct_option": 1,
"detailed_solution": "Jupiter is the largest planet by both mass and volume."
},
{
"type": "statement",
"question_text": "Statement 1: ... \nStatement 2: ...\nWhich is/are correct?",
"options": ["Only 1", "Only 2", "Both", "Neither"],
"correct_option": 2,
"detailed_solution": "Both statements are correct because…"
},
{
"type": "table",
"question_text": "Who scored the highest total?",
"table_data": {
"headers": ["Student", "Maths", "Science"],
"rows": [["A", "72", "65"], ["B", "60", "78"]]
},
"options": ["Student A", "Student B", "Student C", "Student D"],
"correct_option": 1,
"detailed_solution": "B's total is 138, the highest here."
}
]
These fields exist in your database and are enforced exactly as your schema defines them:
typeis required and must bemcq,statement, ortable.optionsmust be an array of exactly 4 strings, every time, for all 3 types.correct_optionmust be an integer 0–3 — the index intooptions.detailed_solutionis required — your DB doesn't allow a question without one.table_datais required whentypeis"table", and must be left out (ornull) otherwise — it's{ "headers": [...], "rows": [[...], ...] }, not an array of strings likeoptions.
When you click Import, every question is checked against these exact column names first. Unknown, missing or misspelled columns block the import (nothing is saved) and are listed by name.
The subject/topic/quiz name and description come from the form above, not the file — the file is only ever this one flat list of questions.