Skip to content

Deletes a section and every lesson inside it.

Endpoint

  • Method: DELETE

  • Path: /admin/courses/{course_id}/sections/{section_id}

  • Edition: Core

  • Controller: CourseAdminController@deleteSection

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

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

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

  • Destructive and cascading: all lessons in the section are deleted with it, along with student progress against them.

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 Section

DELETE
/admin/courses/{course_id}/sections/{section_id}

Deletes a section and every lesson inside it.

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

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

Section 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