API: Quiz questions endpoints¶
/question¶
GET /question¶
Check existing question.
[] Input:
- [!] string id: external unique question identifier
[] Output:
- string id: external unique question identifier
- string code: question identification string
- boolean active: question is active
POST /question¶
Publish or update a question. Check documentation or online editor for more information on additional fields.
[] Input:
- [!] string id: external unique question identifier1
- [!] string type: type of the question
- generic, text, numerical, date/time, expression, choice, multiple-choice, order, matrix:generic, matrix, matrix:expression, set, set:text, true/false, free-text, file, reading
- [!] string question: question text
- [!] string/list{string} answer: single or multiple answers or true statements
- string subject: subject
- string category: category
- string path: path where question will be stored in personal QuestionBase
- default: /API
- string/list{string} options: incorrect options or false statements
- string points: maximum points
Additional optional fields
- string main_category
- string image
- string attachment
- string media_video
- string media_audio
- string note
- string private_note
- string explanation
- string subscoring
- string subpoints
- string penaltyscoring
- string penaltypoints
- string hint
- string solution
- string solution_image
- string source
- string tags
- string label
- string maximum_choices
- string answer_require
- string question_format
- string answer_format
- string difficulty
- string parameters
- string constraints
- string options_fix
- string options_order
- string answer_ordered
- string answer_hide
- string answer_label
- string answer_indefinite
- string group
- string parameters_sync
- string video
- string decimals
- string tolerance
- string graph
- string numerical_range
- string truefalse_third_options
- string truefalse_third_options_label
- string datetime_precision
- string datetime_range
- string grouping
- string freetext_characters
- string freetext_words
- string freetext_rules
- string file_count
- string file_types
- string expression_check
- string expression_decimals
- string expression_random_type
- string expression_random_tries
- string expression_random_range
- string expression_random_inside
- string expression_random_outside
- string expression_explicit_goal
- string expression_extended
- string equation_functions
- string expression_variable
- string hint_penalty
- string solution_penalty
- string video_penalty
[] Output:
- string code: question identification string
DELETE /question¶
Permanently delete a Quiz question.
[] Input:
- [!] string id: external unique question identifier
-
can be an arbitrary string but it should be unique, a GUID is recommended if no other identifier is available ↩