Skip to main content

Duplicate a course problem

POST 

/api/courses/:id/problems/:pid/duplicate

Duplicate a problem within the same course. The title/description come from the request; the type, state cap, determinism flag, and the solution file (answer key) are copied from the source and stay editable afterward. The solution file is copied to a fresh name on disk so the two problems never share a file.

View source

Request

Responses

The newly created problem.