Appearance
Quiz Question
lms.quiz_question
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
quiz | quiz | link → lms.quiz | required |
question_text | question text | longtext | required; max 10000 characters |
question_type | question type | select | required; one of: Single Choice, Multiple Choice, True False, Short Answer, Long Answer; default "Single Choice" |
options | options | json | |
correct_answer | correct answer | json | |
marks | marks | decimal | default 1; min 0 |
negative_marks | negative marks | decimal | default 0; min 0 |
source_bank_item | source bank item | link → lms.question_bank_item | |
display_order | display order | number | min 0 |
is_active | is active | check | default true |
Permissions
| Role | Can |
|---|---|
lms:admin | read, create, update, delete |
lms:college_admin | read, create, update, delete |
lms:hod | read, create, update, delete |
lms:faculty | read, create, update, delete |
API
http
GET /api/lms/quiz_question?<field>=<value>&limit=100&offset=0
POST /api/lms/quiz_question
GET /api/lms/quiz_question/:id
PATCH /api/lms/quiz_question/:id
DELETE /api/lms/quiz_question/:id