Use Case 4 : An assignment was created and updated (old quiz)

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 

An assignment was created and updated: old quiz

 

Use Case #1: User creates/saves+publishes an assignment (quiz) with the name

Assignment_quiz_old_2 with 1 multiple choice question.

 

Outcome #1:  4 messages are issued—1 assignment_created and 3 assignment_updated.

 

Event 1: Assignment created with name = Unnamed Quiz

 

{

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

 "sendTime": "2018-09-20T16:31:11.892Z",

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

 "data": [

   {

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

     "id": "urn:uuid:b16b0223-de4e-4344-a6bf-058d6b7d46a8",

     "type": "Event",

     "actor": {

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

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

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

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "111111111111111"

         }

       }

     },

     "action": "Created",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000363",

       "type": "AssignableDigitalResource",

       "name": "Unnamed Quiz",

       "dateCreated": "2018-09-20T21:09:01.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "entity_id": "21070000000000363" //this is an assignment id, NOT a quiz id.

         }

       }

     },

     "eventTime": "2018-09-20T21:09:01.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:user:111111111111111",

       "type": "Membership",

       "member": {

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

         "type": "Person"

       },

       "organization": {

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

         "type": "CourseOffering"

       }

     },

     "session": {

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

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

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

         "request_id": "2ecd4821-8b54-4289-80c3-e2fcf973afa0",

         "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: assignment_updated

 

{

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

 "sendTime": "2018-09-20T14:23:10.146Z",

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

 "data": [

   {

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

     "id": "urn:uuid:90e3fb93-e320-484b-9b51-7452e48744de",

     "type": "Event",

     "actor": {

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

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

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

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "111111111111111"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000363",

       "type": "AssignableDigitalResource",

       "name": "Unnamed Quiz",

       "dateModified": "2018-09-20T21:09:01.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "workflow_state": "unpublished",

           "entity_id": "21070000000000363"

         }

       },

       "maxScore": {

         "numberStr": "1.0"

       }

     },

     "eventTime": "2018-09-20T21:09:01.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:user:111111111111111",

       "type": "Membership",

       "member": {

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

         "type": "Person"

       },

       "organization": {

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

         "type": "CourseOffering"

       }

     },

     "session": {

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

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

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

         "request_id": "2ecd4821-8b54-4289-80c3-e2fcf973afa0",

         "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 3: assignment_updated

 

{

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

 "sendTime": "2018-09-20T19:51:45.951Z",

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

 "data": [

   {

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

     "id": "urn:uuid:08994edd-5a00-4c7a-8937-4ee6358b52a5",

     "type": "Event",

     "actor": {

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

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

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

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "111111111111111"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000363",

       "type": "AssignableDigitalResource",

       "name": "assignment_quiz_old_2",

       "description": "<p>This is a new quiz assignment</p>",

       "dateModified": "2018-09-20T21:09:11.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "workflow_state": "unpublished",

           "entity_id": "21070000000000363"

         }

       },

       "dateToSubmit": "2018-09-21T05:59:59.000Z",

       "maxScore": {

         "numberStr": "1.0"

       }

     },

     "eventTime": "2018-09-20T21:09:11.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:user:111111111111111",

       "type": "Membership",

       "member": {

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

         "type": "Person"

       },

       "organization": {

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

         "type": "CourseOffering"

       }

     },

     "session": {

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

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

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

         "request_id": "3f774b12-407c-4d4a-a7c5-0998b5b895e8",

         "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 4: assignment_updated

 

{

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

 "sendTime": "2018-09-20T17:13:07.676Z",

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

 "data": [

   {

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

     "id": "urn:uuid:ee7be1a9-b71d-4b47-9140-b1c66f4b7bdf",

     "type": "Event",

     "actor": {

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

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

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

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "111111111111111"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000363",

       "type": "AssignableDigitalResource",

       "name": "assignment_quiz_old_2",

       "description": "<p>This is a new quiz assignment</p>",

       "dateModified": "2018-09-20T21:09:11.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "workflow_state": "published",

           "entity_id": "21070000000000363"

         }

       },

       "dateToSubmit": "2018-09-21T05:59:59.000Z",

       "maxScore": {

         "numberStr": "1.0"

       }

     },

     "eventTime": "2018-09-20T21:09:12.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:user:111111111111111",

       "type": "Membership",

       "member": {

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

         "type": "Person"

       },

       "organization": {

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

         "type": "CourseOffering"

       }

     },

     "session": {

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

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

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

         "request_id": "3f774b12-407c-4d4a-a7c5-0998b5b895e8",

         "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"

       }

     }

   }

 ]

}

 

Use Case #2: End user changes description of the quiz.

 

Outcome #2: One event message is issued: assignment_updated.

 

{

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

 "sendTime": "2018-09-20T16:14:12.077Z",

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

 "data": [

   {

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

     "id": "urn:uuid:209da022-e351-4773-b977-4cc537d568ba",

     "type": "Event",

     "actor": {

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

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

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

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "111111111111111"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000363",

       "type": "AssignableDigitalResource",

       "name": "assignment_quiz_old_2",

       "description": "<p>This is a new quiz assignment ( description changed)</p>",

       "dateModified": "2018-09-20T21:29:51.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "workflow_state": "published",

           "entity_id": "21070000000000363"

         }

       },

       "dateToSubmit": "2018-09-21T05:59:59.000Z",

       "maxScore": {

         "numberStr": "1.0"

       }

     },

     "eventTime": "2018-09-20T21:29: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:user:111111111111111",

       "type": "Membership",

       "member": {

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

         "type": "Person"

       },

       "organization": {

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

         "type": "CourseOffering"

       }

     },

     "session": {

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

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

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

         "request_id": "e0d21476-fbf7-4bf7-a229-627d6a469a3e",

         "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