Brightspace Data Streams (July 2023)

QuizAttemptEvent

«  DropboxFolder_View Event   ·  [   home  ·   community   |   search  ·   index   ·  next   ·  previous   ]   ·  Enrollment Events  »

QuizAttemptEventΒΆ

QuizAttemptEvent objects are posted when an authorized user interacts with a quiz in a quiz attempt. The actor is the user who attempts the quiz, and the object is the quiz attempt. The quiz the user has attempted is specified by the https://api.brightspace.com/xapi/extension_keys/context/target field within the context part of the event. The event object has the following form:

{
        "id": "<EventUUID>",
        "timestamp": "<UTCDateTimeString>",
        "actor": {
                "account": {
                        "homePage": "https://<TenantUUID>.lms.d2l.com/",
                        "name": "urn:uuid:<UserUUID>"
                }
        },
        "verb": {
                "id": "https://api.brightspace.com/xapi/verbs/<QuizAttemptVerbString>"
        },
        "object": {
                "objectType": "Activity",
                "id": "urn:uuid:<QuizAttemptUUID>",
                "definition": {
                        "type": "https://api.brightspace.com/xapi/activities/tools/quiz/attempt"
                }
        },
        "context": {
                "contextActivities": {
                        "category": [
                                {
                                        "id": "https://api.brightspace.com/xapi/profiles/brightspace-activity-v1p0.jsonld"
                                }
                        ]
                },
                "registration": "<OrgUnitUUID>",
                "extensions": {
                        "https://api.brightspace.com/xapi/extension_keys/context/actor": {
                                "userId": "<BrightspaceUserIdNumber>",
                                "imsRoleIds": [ <IMSRoles> ],
                                "impersonatingUserId": "<BrightspaceImpersonatingUserIdNumber>",
                                "roleId": "<BrightspaceRoleIdNumber>"
                        },
                        "https://api.brightspace.com/xapi/extension_keys/context/object": {
                                "id": "<BrightspaceActivityId>"
                        },
                        "https://api.brightspace.com/xapi/extension_keys/context/target": {
                                "id": "urn:uuid:<QuizUUID>",
                                "originalId": "<QuizIdNumber>",
                                "definition": {
                                        "type": "https://api.brightspace.com/xapi/activities/tools/quiz"
                                }
                        },
                        "https://api.brightspace.com/xapi/extension_keys/context/context": {
                                "tenantId": "<TenantUUID>",
                                "originalEventId": "<InternalEventUUID>",
                                "orgUnitType": "<BrightspaceOrgUnitTypeString>",
                                "orgUnitId": "<BrightspaceOrgUnitIdNumber>"
                        }
                }
        }
}

Notes:

<QuizAttemptVerbString>

may be one of

deleted
graded
restored
submitted
<QuizAttemptUUID>

a unique identifier for the quiz attempt. This UUID is created by an algorithm whose input is the TenantID and the quiz attempt ID number. This UUID will be used whenever this attempt is referenced by a BDS event.

<QuizUUID>

a unique identifier for the quiz. This UUID is created by an algorithm whose input is the TenantID and the quiz ID number. This UUID will be used whenever this quiz is referenced by a BDS event.

<OrgUnitUUID>

a unique identifier for the OrgUnit.

impersonatingUserID

only present if the user is being impersonated by a different user. If this field is present, then the Actor information refers to the person being impersonated, not the impersonator.

originalEventId

only provided for use by D2L personnel if needed for troubleshooting.

See Fundamental xAPI Concepts for information on other fields.

«  DropboxFolder_View Event   ·  [   home  ·   community   |   search  ·   index   ·  next   ·  previous   ]   ·  Enrollment Events  »