Skip to content

Question Import Schema

Donna Peplinskie edited this page Nov 21, 2022 · 5 revisions

The following is the schema used for importing questions in Sensei LMS 3.3+. Note that not all columns are applicable for all question types.

Please visit the importer documentation to learn more.

CSV Column Name Example Notes
Id 100 Optional. Unique identifier used to associate questions with lessons.
Question My Question Required.
Slug my-question Optional. Overwrites content with this slug if it already exists.
Description This is the question description. Optional.
Status publish Optional. One of publish, pending or draft (default).
Type single-line Optional. One of multiple-choice (default), boolean, gap-fill, single-line, multi-line or file-upload.
Grade 3 Optional.
Random Answer Order 0 Optional. 0 (default) or 1.
Media http://example.com/image.jpg OR audio.mp3 Optional. Files need to be pre-uploaded or available online in order to import them. Alternatively, the filename can be used if the file already exists in the media library.
Categories Category 1, Category 1 > Category 2 Optional. Comma-separated list of question categories. > indicates hierarchy. Categories are created if they don’t already exist.
Answer Wrong:"Panda, Red", Right:Turtle, Wrong:Fish (multiple-choice), 0 (boolean), This is the answer. (single-line) Required for multiple-choice question types. Must have at least one right answer. If answer contains a comma, wrap it in quotes. Optional for boolean and single-line question types. 0 or 1 (default) for boolean, text for single-line.
Feedback This is the answer feedback. Optional. Only applicable for multiple-choice and boolean question types.
Text Before Gap happily Required for gap-fill question types.
Gap ever Required for gap-fill question types.
Text After Gap after Required for gap-fill question types.
Upload Notes These are the upload notes. Optional. Only applicable for file-upload question types.
Teacher Notes These are the teacher notes. Optional. Only applicable for multi-line and file-upload question types.
Clone this wiki locally