Skip to content

Submission Submitted

The submission.submitted event is triggered when a student submits their work for an assignment.

PropertyTypeDescription
idstringUnique identifier for the submission (UUID)
statestringCurrent state of the submission (submitted)
titlestringTitle of the submission
contentstringText content of the submission
submitted_atstringTimestamp when the student submitted
checked_atstringTimestamp when grading was completed (absent until completed)
created_atstringTimestamp when the submission was created
updated_atstringTimestamp when the submission was last updated
assignmentobjectThe assignment being submitted to (id, name, course_id)
studentobjectThe submitting student (id, name, email)

All timestamps are in ISO 8601 format and include a timezone offset (e.g. +08:00). Properties with empty values are omitted from the payload.

{
"type": "submission.submitted",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"state": "submitted",
"title": "My Week 1 Homework",
"content": "Here is my answer to the exercises...",
"submitted_at": "2024-03-22T10:30:00+08:00",
"created_at": "2024-03-22T10:29:00+08:00",
"updated_at": "2024-03-22T10:30:00+08:00",
"assignment": {
"id": "660e8400-e29b-41d4-a716-446655440111",
"name": "Week 1 Homework",
"course_id": "770e8400-e29b-41d4-a716-446655440222"
},
"student": {
"id": "880e8400-e29b-41d4-a716-446655440333",
"name": "Test Student",
"email": "student@example.com"
}
}
}