request - Questions API

The Initialization object is a JSON object which is passed as the first parameter to window.LearnosityApp.init() method.

It includes all the information needed for authentication, user identification, Question workflow, and UI elements such as save or submit buttons.

Properties

= mandatory property

  • consumer_key string

    Provided by Learnosity as part of the consumer on-boarding process.

  • signature string

    The HMAC SHA256 hash of a series of parameters plus the consumer_secret.

  • timestamp string

    The current time in GMT/UTC using the format: YYYYMMDD-HHMM.

  • user_id string

    User ID unique to the user that is creating/has created the responses.

  • allow_negative_scores boolean

    When set to true, this feature will allow questions to have negative scores, which will penalize the user by negating from the total score if the answer is incorrect.

  • attribute_overrides object

    This allows activity level overrides to be specified in init options.

  • captureOnResumeError boolean

    By default, when initializing an activity in the "resume" state, Questions API will trigger an error for any question's response_id not found within the Learnosity database.

  • custom_widget_options object

    This allows the clients to pass configuration data to certain third-party custom Questions and Features.

  • disable_auto_link boolean

    Sets whether URLs, entered by the user should automatically become clickable-links.

  • disable_spokenmath_user_inputs boolean

    This allows the clients to disable spokenmath in math questions user input.

  • disable_spokenmath_distractors boolean

    This allows the clients to disable spokenmath in question distractors.

  • enable_formula_keyboard_lazy_render boolean

    Sets whether formula and chemistry keyboards should render once an input is first focussed, rather than in the background when all other UI elements are first being rendered.

  • features array[FeatureJson]

    List of Feature JSON objects to use in the assessment.

  • fontsize string

    The text font size used for rendering.

  • id string

    The activity id which can be used to group assessment sessions from users.

  • labelBundle object

    Specifies overrides for labels and text content shown in all Question types.

  • math_renderer string

    This option allows you to overwrite the math_renderer option inside all questions.

  • mirror_visibility boolean

    If enabled, the visibility of floating elements such as the Calculator or Image Tool will mirror that of the question or feature to which they belong.

  • name string

    Activity name, used when submitting and retrieving student responses via Learnosity's Reports API and Data API.

  • questions array[QuestionJson]

    List of Question JSON objects to use in the assessment.

  • render_with_captured_questions boolean Deprecated

    If set, Questions API will attempt to render questions using saved data within the Learnosity database, instead of the values passed in the questions array.

  • question_source string

    If set, Questions API will attempt to render questions using saved data within the Learnosity database, instead of the values passed in the questions array.

  • render_optimization object

    Options for optimizing the rendering performance of Questions.

  • renderSaveButton boolean

    If enabled, Questions API will render a save button, enabling users to save their current progress to the Learnosity database.

  • renderSubmitButton boolean

    If enabled, Questions API will render a submit button.

  • session_id UUIDv4

    The session_id is the reference to an user's attempt at an assessment.

  • show_distractor_rationale boolean | DistractorRationaleOptions

    Options for controlling how distractor rationale are displayed based on the student's response.

  • showCorrectAnswers boolean

    This flag has different behaviors based on the value provided for state.

  • showInstructorStimulus boolean

    If enabled, the content stored inside the instructor_stimulus will be shown above the question's stimulus.

  • skip_highlight_animation boolean Deprecated

    This property skip_highlight_animation is superseded by skip_replay_animation which can be used for general usage to skip animations for all question types.

  • skip_replay_animation boolean

    Causes replay animations to be skipped for all Question types, when set to true.

  • state string

    Sets the state of the activity.

  • type string

    The activity type defines various behaviors around saving and submitting, such as where to store the assessment data and the availability of public methods around saving and submitting.

  • validateOnSubmit boolean

    If enabled, Questions API will determine whether instant feedback should be provided when the users submit their assessment.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.