assignmentCreated.challenge/assignmentCompleted.challenge/assignmentProgress.challenge / assignmentDeleted.challenge / assignmentDeleted.challenge webhook events
See Introduction to Webhooks for details on the user object.
{
"eventType": "assignmentCreated.challenge",
"timestamp": 17265103952580,
"user": {},
"challenge": {
"id": "baseba11-d011-ab1e-fe11-1eafb01dface",
"displayTitle": "An Example Challenge"
},
"challengeAssignment": {}
}challengeAssignment object
challengeAssignment objectid | string | unique identifier of the assignment |
challengeId | string | unique identifier of the challenge |
calculatedGrade | integer | calculated grade out of 100 of the assignment |
completionPercentage | integer | percentage complete of the assignment |
numDaysOverdue | integer | (optional) number of days the assignment is overdue |
status | string | status of the assignment, one of ["not_started", "in_progress", "overdue", "needs_grading", "completed", "failed"] |
isCompleted | boolean | assignment is completed? |
isCompletedOnTime | boolean | assignment was completed on time? |
isFullyGraded | boolean | assignment is fully graded? |
isOverdue | boolean | assignment is overdue? |
isPartiallyGraded | boolean | assignment is partially graded? |
passed | boolean | learned passed the assignment? |
completedAt | integer | (optional) timestamp when the assignment was completed |
createdAt | integer | timestamp when the assignment was created |
dueDate | integer | (optional) timestamp when the assignment is due |
firstViewedAt | integer | (optional) timestamp when the assignment was first viewed by the user |
lastViewedAt | integer | (optional) timestamp when the assignment was last viewed by the user |
reviewersDueDate | integer | (optional) timestamp when reviewing the assignment is due |
updatedAt | integer | timestamp when the assignment was last updated |
TimestampsTimestamps are UNIX-style with milliseconds, eg
1675816954321isWed Feb 08 2023 00:42:34 GMT+0000
Example JSON
{
"challengeAssignment": {
"id": "0191fc31-c100-75ce-a928-26ceada9e14f",
"challengeId": "01920b58-e592-7d99-ad37-3e303d1d7139",
"calculatedGrade": 0,
"completionPercentage": 0,
"numDaysOverdue": null,
"status": "not_started",
"isCompleted": false,
"isCompletedOnTime": false,
"isFullyGraded": false,
"isOverdue": false,
"isPartiallyGraded": false,
"isSubmitted": false,
"passed": false,
"completedAt": null,
"createdAt": 1726358400000,
"dueDate": 1726531200000,
"firstViewedAt": null,
"lastViewedAt": null,
"reviewersDueDate": null,
"updatedAt": 1726512764441
}
}