Skip to content

API: Quiz questions endpoints

/question

GET

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

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, 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 note
  • string private_note
  • string explanation
  • string subscoring
  • string subpoints
  • string penaltyscoring
  • string penaltypoints
  • string hint
  • string solution
  • string solution_image
  • string source
  • string group
  • string tag
  • string answer_require
  • string question_format
  • string answer_format
  • string difficulty
  • string parameters
  • string constraints
  • string options_fix
  • string answer_ordered
  • string answer_hide
  • string answer_label
  • string answer_indefinite
  • 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 freetext_characters
  • 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

Permanently delete a Quiz question.

[] Input:

  • [!] string id: external unique question identifier

  1. can be an arbitrary string but it should be unique, a GUID is recommended if no other identifier is available 


Last update: June 26, 2021