Skip to content

Course Updated

The course.updated event is triggered when an existing course is updated in the system.

Event Properties

PropertyTypeDescription
idstringThe unique identifier of the course
namestringThe updated name of the course
descriptionstringThe updated description of the course
statestringThe current state of the course
typestringThe type of the course (always “Course”)
created_atstringThe timestamp when the course was created
updated_atstringThe timestamp when the course was last updated
slugstringThe updated URL-friendly slug of the course
plansarrayAn array of updated plans associated with the course

Plan Properties

Each plan in the plans array has the following properties:

PropertyTypeDescription
idstringThe unique identifier of the plan
namestringThe updated name of the plan
descriptionstringThe updated description of the plan
currencystringThe currency code for the plan’s price
amountintegerThe updated price amount in the smallest currency unit
created_atstringThe timestamp when the plan was created
updated_atstringThe timestamp when the plan was last updated

Example Payload

{
"type": "course.updated",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Advanced Programming Techniques",
"description": "Take your coding skills to the next level with advanced programming concepts.",
"state": "published",
"type": "Course",
"created_at": "2023-05-15T14:30:00Z",
"updated_at": "2023-06-01T10:15:00Z",
"slug": "advanced-programming-techniques",
"plans": [
{
"id": "plan_123",
"name": "Standard Plan",
"description": "6 months access to all course materials",
"currency": "TWD",
"amount": 7500,
"created_at": "2023-05-15T14:35:00Z",
"updated_at": "2023-06-01T10:15:00Z"
},
{
"id": "plan_456",
"name": "Premium Plan",
"description": "Lifetime access to course materials, weekly Q&A sessions, and personal mentoring",
"currency": "TWD",
"amount": 15000,
"created_at": "2023-05-15T14:36:00Z",
"updated_at": "2023-06-01T10:15:00Z"
}
]
}
}