Duplicate an assignment
POST/api/courses/:id/assignments/:aid/duplicate
Duplicate an assignment within the same course. The title/description come from the request; the type (groupSetId), audience (AssignmentAssignee), schedule, and date exceptions (AssignmentOverride) are copied verbatim from the source and are editable afterward. The copy is always created unpublished. Submissions and grades are never copied. Problems are handled by problemMode: - none : the copy has no problems. - link : the copy shares the source's Problem records (editing one edits both). - duplicate : each problem is copied to a new Problem (with its own solution file).
Request
Responses
- 201
- 400
- 403
- 404
- 500
The newly created (unpublished) assignment.
Invalid body.
Not course staff or a system admin.
Source assignment not found in this course.
Server error.