Payload : AssignableEvent

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

Back to:  Table of Contents 

AssignableEvent

 

assignment_created

 

{

 "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:4c56e20b-03d3-4d37-991c-f04e995ff45a",

     "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:21070000000000360",

       "type": "AssignableDigitalResource",

       "name": "assignment_basic_caliper", // Canvas assignment title

 "description": "<p>This is a new caliper assignment </p>", // Canvas assignment description is cut off at around 8180 characters

"dateCreated": "2018-09-20T19:38:43.000Z",

"extensions": {

         "com.instructure.canvas": {

           "lock_at": "2018-10-01T05:59:59.000Z", // assignment lock_at date

           "entity_id": "21070000000000367"

         }

       },

  "dateToShow": "2018-09-22T04:59:59.000Z", // Canvas assignment unlock_at date

 

       "dateToSubmit": "2018-09-22T05:59:59.000Z", // Canvas assignment due_at date

       "maxScore": {

         "numberStr": "10.0"

       } // Canvas Assignment points possible . GAP: this should be decimal value, e.g. 10.0. We are using float wrapped in object. This will be fixed. 

     },

     "eventTime": "2018-09-20T19:38:43.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": "ce189925-79ef-4390-8c5f-a333c69925ad",

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

       }

     }

   }

 ]

}

 

Supported Extensions:

 

Extensions (assignment_created)

 

lock_at: formatDateTime(lock_at),

           entity_id: assignment_id

 

assignment_updated

 

{

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

 "sendTime": "2018-09-27T11:40:05.223Z",

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

 "data": [

   {

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

     "id": "urn:uuid:4c155deb-21ae-4523-a344-2afecc71eea2",

     "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:21070000000000367",

       "type": "AssignableDigitalResource",

       "name": "assignment 1 - updated",

       "dateModified": "2018-09-27T16:00:58.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "lock_at": "2018-10-01T05:59:59.000Z", // lock_at date for Canvas assignment

           "workflow_state": "published", // workflow state extension only gets added to assignment_updated message type , only available for AssignableDigitalResource with action = Modified

           "entity_id": "21070000000000367"

         }

       },

       "dateToShow": "2018-09-26T06:00:00.000Z",

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

       "maxScore": {

         "numberStr": "100.0"

       }

     },

     "eventTime": "2018-09-27T16:00:58.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:5ea97d244bac31033cc1cbec76feeda5",

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

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

         "request_id": "e70da044-1bfa-4561-88db-6aafcd8c1f42",

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

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Supported Extensions:

 

Extensions (assignment_updated)

        lock_at: formatDateTime(lock_at),

        workflow_state: workflow_state,

        entity_id: assignment_id

Back to:  Table of Contents 

Attachments

    Outcomes