items
Defines the Items to be used in the current assessment.
This option is essential because this is the only way to specify the Item content, where you are selecting Items and building the assessment according to your own requirements.
This can be defined as an array of unique Item references as strings, or an array of Item objects for advanced usage.
Note You could alternatively use an Activity which is built-in to Learnosity products and allows you to group Items for use in assessments.
Values
Request object key items
This option can be initialized as one of the following types: array[strings] array[ItemObject].
-
Type array[strings] An array of unique Item references as strings.
var initializationOptions = { items: [ "my_item_reference_1", "my_item_reference_2", "my_item_reference_3", // ... ] // ... };
-
Type array[ItemObject] An array of Item objects.
var initializationOptions = { items: [ { "id": "my_item_reference_id_1", "reference": "item_reference_1" }, { "id": "my_item_reference_id_2", "reference": "my_item_reference_2" }, { "id": "my_item_reference_id_3", "reference": "my_item_reference_3" }, // additional Item object definitions below ... ] };
-
ItemObject object
Item objects can be used in place of Item references when Items from multiple Item banks or Item pools need to be used within the same Activity.
-
id string
A host-page supplied unique identifier (which can be the same as the Item reference).
Note When using a different value than the
reference
, some data from Reports API might be affected. -
reference stringThe Item reference to retrieve.
-
data_table_index integer
A configuration parameter that will be used to specify the
index
of a single row in the dynamic content dataset to serve at runtime.Note It will override the
data_table_index
value in dynamic_items. -
data_table_row string
A configuration parameter that will be used to specify the
key
of a single row in the dynamic content dataset to serve at runtime.Important Must be a valid UUID.
Note It has priority over
data_table_index
.Note It has priority over
data_table_index
value in thedynamic_items
initialization option. -
item_pool_id stringSets or override the Item Pool to retrieve Item from.
-
organisation_id stringSets or override the Item Bank to retrieve Item from.
-
scoring_type string
The scoring type specified in the Item Bank can be overriden for each Item. If desired, it can also be overridden for the entire Activity. If both an Item-level and an Activity-level scoring types are specified, the Item-level configuration takes precedence.
-
-
Caveats
- This is a mandatory property unless
adaptive
orsections
are configured, or using anactivity_template_id
withitems
in it. - The
items
property has priority over theactivity_template_id
, if they are both configured. - The
items
andsections
can not be used at the same time in a request object.
Related articles
this is a mandatory property.