config.score_overrides_enabled - Initialization - Items API

Items API Initialization

score_overrides_enabled

This enables the score override functionality for an activity or item request.

When set to true:

  • Allows item-level score_overrides to be applied to questions
  • Each item can specify a score_overrides array mapping question references to numeric scores
  • These scores are applied as validation_overrides.valid_response.score on matching questions

When set to false or not set:

  • Score overrides are not applied, even if items contain score_overrides data
  • Questions retain their original validation scores

Examples

var initializationOptions = {
    "config": {
        "score_overrides_enabled": true
    },
    "items": [
        {
            "reference": "item-1",
            "score_overrides": {           // <-- Custom scores per question
                "question-ref-1": 10,
                "question-ref-2": 5
            }
        }
    ]
};

Values

Attribute path config.score_overrides_enabled

Type boolean

Was this article helpful?

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