Tool to create a new question with specified text, type, and category in ClassMarker. Supports multiplechoice, multipleresponse, truefalse, and essay question types.
pointsRequiredintegerPoints awarded for a correct answer.
optionsobjectAnswer choices as a dictionary mapping option letters (A-J) to {'content': 'option text'}. Required for multiplechoice, multipleresponse, and truefalse types. Not used for essay questions.
questionRequiredstringThe text of the question to create.
category_idRequiredintegerCategory identifier to assign this question.
grade_stylestringGrading style for multipleresponse questions: 'partial_with_deduction' (partial credit with penalties for wrong choices), 'partial_without_deduction' (partial credit without penalties), or 'off' (all-or-nothing grading). Only valid for multipleresponse type.
question_typeRequiredstringType of question to create: 'multiplechoice' (one correct answer), 'multipleresponse' (multiple correct answers), 'truefalse' (True/False question), or 'essay' (open-ended text response)
random_answersRequiredbooleanWhether to randomize the order of options. Note: Ignored for truefalse and essay question types.
correct_optionsarrayList of correct option letters. Must contain exactly one letter for multiplechoice and truefalse questions, can contain multiple letters for multipleresponse. Not used for essay questions.
correct_feedbackstringOptional feedback for a correct answer.
incorrect_feedbackstringOptional feedback for an incorrect answer.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
API key connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.