Skip to main content

Import an assignment from another course

POST 

/api/courses/:id/assignments/import

Imports an assignment from ANOTHER course the caller can manage into this course. Unlike duplicate, audience, group set, and date exceptions are not carried across (they reference records scoped to the source course); the import always lands as an unpublished, individual, assigned-to-everyone assignment. The schedule (due date, available-from, late settings) is copied from the source as a starting point and is editable afterward. Problems are handled by problemMode: - none : the imported assignment has no problems. - copy : each problem is copied into THIS course (a new Problem with its own solution file); there is no "link" mode because problems are course-scoped. Permission is tiered: the wrapper gates the destination course (manage), and the caller must also be able to manage the source course.

View source

Request

Responses

The newly created (unpublished) assignment.