> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hawkings.education/llms.txt
> Use this file to discover all available pages before exploring further.

# Clone a course

> Duplicate a course, including its syllabus tree and AI configuration. Cohorts and submissions are not copied.

## Path parameters

<ParamField path="id" type="string" required />

## Body

<ParamField body="name" type="string" required>
  Name for the new course.
</ParamField>

<ParamField body="language" type="string">
  Override language (defaults to the source course's).
</ParamField>

## Examples

<CodeGroup>
  ```ts TypeScript theme={null}
  const copy = await hk.courses.clone("crs_123", {
    name: "Intro to Special Relativity (Spanish track)",
    language: "es",
  });
  ```

  ```php PHP theme={null}
  $copy = $hk->courses->clone('crs_123', [
      'name' => 'Intro to Special Relativity (Spanish track)',
      'language' => 'es',
  ]);
  ```
</CodeGroup>

## Returns

The new [Course](/api-reference/courses/object), `status: "draft"` until
content regenerates if you changed the language.
