Skip to content

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: PUT

  • Path: /admin/courses/{course_id}/move-lesson

  • Edition: Core

  • Controller: CourseAdminController@moveLesson

  • Route source: fluent-community/Modules/Course/Http/course_api.php:55

  • Controller source: fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php

  • Requires 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

PUT
/admin/courses/{course_id}/move-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

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

course_id*

Course ID extracted from the URL path.

Type
integer
Required

Request Body

application/json
JSON
{
  
"lesson_id": "string",
  
"section_id": "string"
}

Responses

Successful response

application/json
JSON
{
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation