Creates an empty draft lesson at the end of a section.
title and section_id are required, and the section must belong to this course. The lesson is always created as a draft and takes the next free priority within its section.
Endpoint
Method:
POSTPath:
/admin/courses/{course_id}/lessonsEdition: Core
Controller:
CourseAdminController@createLessonRoute source:
fluent-community/Modules/Course/Http/course_api.php:53Controller 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.
POST Create Course Lesson
Creates an empty draft lesson at the end of a section.
Controller: CourseAdminController@createLesson
Route source: fluent-community/Modules/Course/Http/course_api.php:53
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Request Body
Responses
Successful response