Skip to main content

Duplicate a course

POST 

/api/courses/:id/duplicate

Creates a new course modeled on an existing one, in a single transaction. The copy's faculty comes from the copied faculty roster and/or an explicit instructorIds list; at least one faculty member is required (the caller is NOT added automatically). TAs are copied only when asked. copyMode (or the legacy copyAssignments/copyProblems booleans) selects what carries over: assignments only, problems only, or assignments with their problems. The copy always starts unpublished with a fresh registration code. System administrators only. Dates are interpreted in the actor's timezone.

View source

Request

Responses

The new course id.