Skip to main content
POST
/
v1
/
courses
/
{id}
/
clone
Clone a course
curl --request POST \
  --url https://api.example.com/v1/courses/{id}/clone \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "language": "<string>"
}
'

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.

Path parameters

id
string
required

Body

name
string
required
Name for the new course.
language
string
Override language (defaults to the source course’s).

Examples

const copy = await hk.courses.clone("crs_123", {
  name: "Intro to Special Relativity (Spanish track)",
  language: "es",
});

Returns

The new Course, status: "draft" until content regenerates if you changed the language.