Copies a course, its sections, its lessons and their attached documents into a new draft owned by the current user.
The copy takes the original title with a "(Copy)" suffix and a timestamped slug, and is always created as a draft regardless of the source status. Students, enrolments and progress are not copied.
Endpoint
Method:
POSTPath:
/admin/courses/{course_id}/duplicateEdition: Core
Controller:
CourseAdminController@duplicateCourseRoute source:
fluent-community/Modules/Course/Http/course_api.php:26Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires the course-creator permission.
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 Duplicate Course
Copies a course, its sections, its lessons and their attached documents into a new draft owned by the current user.
Controller: CourseAdminController@duplicateCourse
Route source: fluent-community/Modules/Course/Http/course_api.php:26
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Responses
Successful response