Duplicate course
course_duplicateCopy a course into a new hidden course named " (Copy)" on this site, the fastest way to start a new cohort or a variant of a template; use course_create for a blank course. The copy gets the source's settings, its current lessons as version 1 (graded blocks get fresh ids so learner records stay separate), SCORM/xAPI packages, discussion topics and prompts, tags, certificate template and instructors, plus authorId (default: the site's first admin), who is added to its instructors and recorded as the author of version 1. It does NOT copy enrollments or other learner data, the slug, or the certificate statement-code prefix and numbering, so give the copy a slug with course_update before learners can reach it. Large SCORM/xAPI packages make the copy slow; if the call times out, check course_list before retrying so you do not create a second copy (a copy that fails is rolled back). Returns the new course object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Course to duplicate (must be on this site). | |
| authorId | No | User credited as the copy's author and added to its instructors; must belong to this site. Defaults to the site's first admin. |