Skip to content

Deletes a single lesson from a course.

Endpoint

  • Method: DELETE

  • Path: /admin/courses/{course_id}/lessons/{lesson_id}

  • Edition: Core

  • Controller: CourseAdminController@deleteLesson

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

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

  • Requires the course-creator permission and management access to this course.

  • Destructive: student completion records for the lesson go with it, which shifts every enrolled student overall course progress.

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.

DELETE Delete Course Lesson

DELETE
/admin/courses/{course_id}/lessons/{lesson_id}

Deletes a single lesson from a course.

Controller: CourseAdminController@deleteLesson
Route source: fluent-community/Modules/Course/Http/course_api.php:59

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
lesson_id*

Lesson ID extracted from the URL path.

Type
integer
Required

Responses

Successful response

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

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation