Skip to content

Assignment Created

The assignment.created event is triggered when a teacher creates a new assignment in a course.

PropertyTypeDescription
idstringUnique identifier for the assignment (UUID)
namestringName of the assignment
descriptionstringDescription of the assignment
publishedbooleanIndicates whether the assignment is published
due_atstringDue date of the assignment (may be absent)
created_atstringTimestamp when the assignment was created
updated_atstringTimestamp when the assignment was last updated
courseobjectThe course this assignment belongs to (id, name, slug)

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"
}
}
}