Course Updated
The course.updated
event is triggered when an existing course is updated in the system.
Event Properties
Property | Type | Description |
---|---|---|
id | string | The unique identifier of the course |
name | string | The updated name of the course |
description | string | The updated description of the course |
state | string | The current state of the course |
type | string | The type of the course (always “Course”) |
created_at | string | The timestamp when the course was created |
updated_at | string | The timestamp when the course was last updated |
slug | string | The updated URL-friendly slug of the course |
plans | array | An array of updated plans associated with the course |
Plan Properties
Each plan in the plans
array has the following properties:
Property | Type | Description |
---|---|---|
id | string | The unique identifier of the plan |
name | string | The updated name of the plan |
description | string | The updated description of the plan |
currency | string | The currency code for the plan’s price |
amount | integer | The updated price amount in the smallest currency unit |
created_at | string | The timestamp when the plan was created (ISO 8601 format, e.g. “2023-12-04T18:45:44+08:00” or “2023-12-04T10:45:44Z”) |
updated_at | string | The timestamp when the plan was last updated (ISO 8601 format) |
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" } ] }}