Element Awaiting Grade

Last modified on June 5, 2024 at 6:36 pm

Element Awaiting Grade Event Webhook Example

The following is an example of a JSON representation of an Element Awaiting Grade event. This illustrates how this event will be represented in the callback to your server.

{
"event" : "element_awaiting_grade",
"date" : "2024-06-03T21:24:19Z",
"user" : {
"id" : "32163a577d844718a0d21ae3e3125cc7",
"firstName" : "Doria",
"lastName" : "Benedetto",
"username" : "do_benede@linux.com",
"email" : "do_benede@linux.com",
"locale" : "en"
},
"element" : {
"type" : "assignment",
"id" : "eeb3846cf9c442c0b36e9d2b9b1dc799",
"title" : "Module 2",
"question" : "Tempus etiam rhoncus placerat quis dictum auctor luctus, sollicitudin rhoncus phasellus varius eget fringilla ipsum. Sagittis mauris lacinia fusce. Faucibus natoque dictum urna sollicitudin est et.",
"response" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Dui magnis nostra orci suspendisse mattis condimentum nisi dapibus nam, eget montes pellentesque ultricies dignissim ligula lobortis rutrum lobortis, diam ultricies torquent vestibulum sem lacus eu ac cursus, proin proin lectus. Id platea libero ornare diam ante urna, nibh donec porta purus et, quisque enim at at accumsan aliquam massa cursus tincidunt, felis nulla sapien metus id sagittis fames lectus velit sed. Dis senectus ante nisi est luctus nascetur lacinia natoque. Nam mattis nunc tempus consequat dolor vitae justo torquent taciti, nulla nibh dictum lorem cursus imperdiet tristique pulvinar tincidunt, tellus tellus purus elementum ridiculus nunc lobortis, pretium in habitant. Magnis potenti dictum arcu. Phasellus ipsum leo consectetur fringilla feugiat eget netus pulvinar quis."
},
"registration": {
"id": "327194698e823d28918f83457a300092",
"beginDate": "2024-05-16T21:36:10Z"
},
"offering" : {
"id" : "7916e8963ba944faa7f0a2d04e41c5d3",
"title" : "Sample Course"
}
}

Property Details

PropertyJSON Data TypeDescription
eventstringThis is the event type that is being sent to this callback. If you are using the same callback URL for all events, you can use this to segement them within your application.
datestringThe date and time when this event occurred. For more information on the format, see the Date/Time Format documentation.
userobjectThe user that completed the course element.
user.idstringThe id of the user. This uniquely identifies the user and can be used to query our API for more information about the user.
user.firstNamestringThe first name of the user.
user.lastNamestringThe last name of the user.
user.usernamestringThis is the username for this user. If an organization uses username instead of email for login, this can be different than the email address.
user.emailstringThe email address of the user.
user.localestringThis is the locale preference set on the user’s account.
elementobjectThe element that is awaiting a grade in the course.
element.typestringThe type of element. Element type will be one of the following: test, assignment.
element.idstringThe ID of the element. This is a unique ID identifying the element in the course.
element.titlestringThe title of the element.
element.questionstringIn the case where the element type is an assignment, the question property will be exposed and contain the question on the assignment.
element.responsestringIn the case where the element type is an assignment, the response property will be exposed and contain the response from the user on the assignment.
registrationobjectThe registration object holds information that is unique to this user and offering.
registration.idstringThe ID of this registration. This uniquely identifies the registration and can be used to query our API for more information about the registration.
registration.beginDatestringThe date and time when this registration started. For more information on the format, see the Date/Time Format documentation.
offeringobjectThe offering into which the user was registered.
offering.idstringThe ID of the offering. This uniquely identifies the offering and can be used to query our API for more information about the offering.
offering.titlestringThe title of the offering.