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.
Request
Responses
- 201
- 400
- 403
- 404
- 500
The newly created problem.
Invalid body.
Not course staff or a system admin.
Source problem not found in this course.
Server error.