...
EVENT | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
An Event is the thing being recorded in the hub: user completed a course, earned a credential, etc. This design is influenced by the idea of a Learning Record Store in xAPI, but with less complexity. | ||||||||||||||||||||||||||||||
Field | Type | Notes | ||||||||||||||||||||||||||||
| PRG-UUID |
The Event Ids are assigned by the Learning Hub. | ||||||||||||||||||||||||||||
| string (25 char) | Descriptive name for the Program that published this event. | ||||||||||||||||||||||||||||
| string (25 char) | Identifier for the type of system that published this data. Currently, only the value “LB” is supported, for LearningBuilder. | ||||||||||||||||||||||||||||
| string (50 char) | The type of event as reported by the publisher. This list of possible types will vary by
| ||||||||||||||||||||||||||||
| string (200 char) | The Program’s unique identifier for the source event. For LearningBuilder this will be something like “AI:1234”, which would be the Activity Instance WFI #1234 | ||||||||||||||||||||||||||||
| string (200 char) | The Program’s unique identifier for the person, organization, or entity that the event relates to.
| ||||||||||||||||||||||||||||
| JSON object | High level classification of this event, within the publisher’s system.
The The The This data can be used by the subscriber to map different types of publisher data to different import templates. If omitted, subscribers will not be able to differentiate between different types of records coming from the publisher. | ||||||||||||||||||||||||||||
| JSON blob | The Program’s representation of the event data
| ||||||||||||||||||||||||||||
| UTC date/time | Non-null date/time the event started. (If only a single date/time is associated with the event, it is stored here) | ||||||||||||||||||||||||||||
| UTC date/time | Nullable date/time that the event ended. | ||||||||||||||||||||||||||||
| UTC date/time | UTC timestamp when this record was created. |
Calling the API
API Hostnames
Authentication
Event Type
Different systems track different types of events, and different types of events may be associated with different data fields. Additionally, subscribers may only care about certain types of events from a given publisher.
In the initial launch of the Learning Hub, the only recognized value is AI_COMP_SUCCESS
, representing a Completed Successfully event for a LearningBuilder Activity Instance.
Calling the API
API Hostnames
Authentication
Publishing Events into the Registry
...
Code Block |
---|
{ "PublisherProgramId": "ProgramId", "PublisherSystemId": "LB", "PublisherEventId": "some_key_id", "EventType": "Event Type indicator", "PublisherParticipantId": "joebob@example.com", "PublisherEventCategory": { "value": "some_key", "label": "friendly value" }, "PublisherEventData": { JSON }, "EventStartUtc": "UTC date/time", "EventEndUtc": "UTC date/time" } |
Parameter | Description |
---|---|
| The Program that owns the Event. The API Key must have access to this Program. |
| The type of system that published the event. For now, only “LB” is supported. |
| The type of Learning Hub Event this record represents. See the “Event Types” section, above. |
| A value that uniquely identifies this event in the publisher’s system. For LearningBuilder publishers, this will be an “entity-scoped identifier” such as |
| Email address or some other piece of information that uniquely identifiers the primary participant within the publisher's system. |
| JSON object containing information about the type of Event, according to the source Program’s system. The The |
| JSON object representing the Event in the source Program’s system. |
| The UTC date/time when this Event occurred, or the time that the Event started. |
| The UTC date/time when this Event ended. For Events with only a single timestamp, rather than a range, set this equal to |
...
Response Code | Headers and Body | |||||
---|---|---|---|---|---|---|
200 (Ok) |
|
...