Use Case 7 : A student enrollment was updated

Document created by Oxana Jurosevic Administrator on Oct 16, 2018Last modified by Oxana Jurosevic Administrator on Oct 17, 2018
Version 2Show Document
  • View in full screen mode

Back to:  Table of Contents 

A student enrollment was updated

 

Use Case: Enrollment was updated. Student accepted invitation to the course from Canvas course page.

 

Outcome:   Two messages are issued : enrollment_updated and enrollment_state_updated as a result

 

Event 1: enrollment_state_updated

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-21T13:21:03.620Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:05c77e02-7c48-4998-b943-b5019aa1d3b6",

     "type": "Event",

     "actor": {

       "id": "urn:instructure:canvas:user:21070000000000047",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "real_user_id": "111111111111111",

           "user_login": "test1@test.com",

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "21070000000000047"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:enrollment:21070000000046821",

       "type": "Entity",

       "extensions": {

         "com.instructure.canvas": {

           "access_is_current": true,

           "restricted_access": false,

           "state": "active",

           "state_is_current": true,

           "entity_id": "21070000000046821"

         }

       }

     },

     "eventTime": "2018-09-21T20:06:51.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565",

       "type": "CourseOffering",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "membership": {

       "id": "urn:instructure:canvas:course:21070000000000565:Learner:21070000000000047",

       "type": "Membership",

       "member": {

         "id": "urn:instructure:canvas:user:21070000000000047",

         "type": "Person"

       },

       "organization": {

         "id": "urn:instructure:canvas:course:21070000000000565",

         "type": "CourseOffering"

       },

       "roles": [

         "Learner"

       ]

     },

     "session": {

       "id": "urn:instructure:canvas:session:fe03cd7d1de8d27ca95e2d6f5fe11891",

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "825ec49d-32ba-471f-bfeb-7d873ea0a566",

         "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Event 2: enrollment_updated

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-21T16:23:26.124Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:6cd39a0e-5803-480f-be8e-dce57faa19f5",

     "type": "Event",

     "actor": {

       "id": "urn:instructure:canvas:user:21070000000000047",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "real_user_id": "111111111111111",

           "user_login": "test1@test.com",

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "21070000000000047"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:enrollment:21070000000046821",

       "type": "Entity",

       "dateCreated": "2018-09-21T19:38:56.000Z",

       "dateModified": "2018-09-21T20:06:51.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "course_id": "urn:instructure:canvas:course:21070000000000565",

           "course_section_id": "urn:instructure:canvas:course:21070000000000565:section:21070000000000598",

           "limit_privileges_to_course_section": false,

           "type": "StudentEnrollment",

           "user_id": "urn:instructure:canvas:user:21070000000000047",

           "user_name": "Student Test 1",

           "workflow_state": "active",

           "entity_id": "21070000000046821"

         }

       }

     },

     "eventTime": "2018-09-21T20:06:51.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565:section:21070000000000598",

       "type": "CourseSection",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "membership": {

       "id": "urn:instructure:canvas:course:21070000000000565:section:21070000000000598:Learner:21070000000000047",

       "type": "Membership",

       "member": {

         "id": "urn:instructure:canvas:user:21070000000000047",

         "type": "Person"

       },

       "organization": {

         "id": "urn:instructure:canvas:course:21070000000000565:section:21070000000000598",

         "type": "CourseSection",

         "subOrganizationOf": {

           "id": "urn:instructure:canvas:course:21070000000000565",

           "type": "CourseOffering"

         }

       },

       "roles": [

         "Learner"

       ]

     },

     "session": {

       "id": "urn:instructure:canvas:session:fe03cd7d1de8d27ca95e2d6f5fe11891",

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "825ec49d-32ba-471f-bfeb-7d873ea0a566",

         "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",

         "version": "1.0.0"

       }

     }

   }

 ]

}

Back to:  Table of Contents 

Attachments

    Outcomes