Submission Completed
The submission.completed event is triggered when a teacher finishes grading a submission. In addition to all submission.submitted properties, the payload may include the rating and the grader.
Additional Properties
Section titled “Additional Properties”| Property | Type | Description |
|---|---|---|
| rate | object | The rating given by the teacher (score, comment); absent if not rated |
| grader | object | The teacher who graded the submission (id, name); absent if not graded |
Example Payload
Section titled “Example Payload”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.completed", "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "state": "checked", "title": "My Week 1 Homework", "content": "Here is my answer to the exercises...", "submitted_at": "2024-03-22T10:30:00+08:00", "checked_at": "2024-03-24T15:00:00+08:00", "created_at": "2024-03-22T10:29:00+08:00", "updated_at": "2024-03-24T15:00: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" }, "rate": { "score": 4.5, "comment": "Great work!" }, "grader": { "id": "990e8400-e29b-41d4-a716-446655440444", "name": "Test Teacher" } }}