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_overridesto be applied to questions - Each item can specify a
score_overridesarray mapping question references to numeric scores - These scores are applied as
validation_overrides.valid_response.scoreon matching questions
When set to false or not set:
- Score overrides are not applied, even if items contain
score_overridesdata - 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