Adds a published section to the end of a course outline.
title is required. The new section takes the next free priority, so it always appears last.
Endpoint
Method:
POSTPath:
/admin/courses/{course_id}/sectionsEdition: Core
Controller:
CourseAdminController@createSectionRoute source:
fluent-community/Modules/Course/Http/course_api.php:44Controller 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 Section
Adds a published section to the end of a course outline.
Controller: CourseAdminController@createSection
Route source: fluent-community/Modules/Course/Http/course_api.php:44
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