Copies a section, its lessons and their attached documents from one course into another, appended to the end of the destination outline.
Send section_id and from_course_id; the caller must administer the source course as well as the destination one, which the route policy alone does not enforce. Student progress is not copied.
Endpoint
Method:
PUTPath:
/admin/courses/{course_id}/copy-sectionEdition: Core
Controller:
CourseAdminController@copySectionRoute source:
fluent-community/Modules/Course/Http/course_api.php:54Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires course-admin access to both the source and the destination 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 Copy Course Section
Copies a section, its lessons and their attached documents from one course into another, appended to the end of the destination outline.
Controller: CourseAdminController@copySection
Route source: fluent-community/Modules/Course/Http/course_api.php:54
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