Moves a lesson into a different section of the same course.
Send lesson_id and section_id; both must already belong to the course in the path. The lesson keeps its existing priority value, so a reindex call usually follows.
Endpoint
Method:
PUTPath:
/admin/courses/{course_id}/move-lessonEdition: Core
Controller:
CourseAdminController@moveLessonRoute source:
fluent-community/Modules/Course/Http/course_api.php:55Controller 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 Move Course Lesson
Moves a lesson into a different section of the same course.
Controller: CourseAdminController@moveLesson
Route source: fluent-community/Modules/Course/Http/course_api.php:55
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