Courses::Lesson
Update Lesson
Update Lesson
put/courses/lessons/{id}
Path parameters
idstring required
Request body
Example request
{
"courses_lesson": {
"courses_lesson": {
"title": "Lesson 1",
"body": "Example Lesson",
"lesson_content": "## Welcome\nThis is the lesson content."
}
}
}Response
OK
Example response
{
"id": 1,
"public_id": "ucGpIe",
"title": "Lesson 1",
"body": "Example Lesson",
"section_id": 2,
"published_at": "2025-01-01T00:00:00.000Z",
"current_path": null,
"sort_order": 0,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}