Saves the full lesson record — title, status, body and metadata — and reconciles the featured image media.
The payload is nested under lesson, and title, parent_id and a status of draft, published or archived are required. An empty message is honoured, so the body can be cleared deliberately. Removing the featured image detaches the underlying media row. Attached document ids are preserved from the stored metadata rather than taken from the request.
Endpoint
Method:
PUTPath:
/admin/courses/{course_id}/lessons/{lesson_id}Edition: Core
Controller:
CourseAdminController@updateLessonRoute source:
fluent-community/Modules/Course/Http/course_api.php:57Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires the course-creator permission and management access to this course.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
PUT Update Course Lesson
Saves the full lesson record — title, status, body and metadata — and reconciles the featured image media.
Controller: CourseAdminController@updateLesson
Route source: fluent-community/Modules/Course/Http/course_api.php:57
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Lesson ID extracted from the URL path.
Request Body
Responses
Successful response