Event Set
This API allows you to record student successfully accomplishing one or more events (or tasks) in a training application.
Last updated
This API allows you to record student successfully accomplishing one or more events (or tasks) in a training application.
Last updated
GET
https://api.motar.io/edu/v1/event-set
Reads an event set.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Event Set modules work differently than other modules. Event Set progress is not reported directly via this API. Instead, event set progress is reported via xAPI statements. This allows a high degree of customization on the part of the implementor.
To report event set progress, you will need to create an xAPI statement referring to an event in an event sets, along with a lesson result ID specifying the module attempt. You can also include an optional "correct" flag to tell the MOTAR API whether or not the event activity counts as "correct" for score tracking purposes.
The eventId
property can either be found by using the "Read an Event Set" API method above, or in the MOTAR Training dashboard course creator GUI.
A lessonResultId
refers to a specific attempt at a lesson, with a start time, end time, and score. When you start a lesson, the API returns the new lessonResultId
which can be used in subsequent API calls for activity during that lesson attempt.
In this example, we are reporting that a student has completed the first event in an event set correctly.
In this example, we are reporting that a student has made a mistake on the second event. We have also included some additional metadata (specific to our application) about the attempt.
Note that a student can reattempt an event as many times as necessary within one overall lesson attempt (defined by your implementation). An event will be marked as correct as long as the latest statement is marked as such. In this example, the student is attempting event #2 again, and succeeding this time (with help from an AI agent).
Note that event set scoring is cumulative across all lesson attempts. The newest (last reported) attempt will be used to determine the cumulative score for all events, and represents the student's "final" score for the module. Scoring is also only calculated for events that have a correct flag reported. If a student does not record a correct/incorrect statement for an event, it will not be factored into their score.
eventSetId
string
The ID of an event set or the ID of an event set lesson.
Authorization
string
Authentication token generated by user tokens.