Assignment Created
The assignment.created event is triggered when a teacher creates a new assignment in a course.
Event Properties
Section titled “Event Properties”| Property | Type | Description |
|---|---|---|
| id | string | Unique identifier for the assignment (UUID) |
| name | string | Name of the assignment |
| description | string | Description of the assignment |
| published | boolean | Indicates whether the assignment is published |
| due_at | string | Due date of the assignment (may be absent) |
| created_at | string | Timestamp when the assignment was created |
| updated_at | string | Timestamp when the assignment was last updated |
| course | object | The course this assignment belongs to (id, name, slug) |
Example Payload
Section titled “Example Payload”This example shows a typical payload that you’ll receive when a new assignment is created. 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": "assignment.created", "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Week 1 Homework", "description": "Complete the exercises from chapter 1.", "published": true, "due_at": "2024-03-28T13:45:30+08:00", "created_at": "2024-03-21T13:45:30+08:00", "updated_at": "2024-03-21T13:45:30+08:00", "course": { "id": "660e8400-e29b-41d4-a716-446655440111", "name": "Introduction to Programming", "slug": "intro-to-programming" } }}