patch https://api.codepost.io/courses//roster/
Behavior
Updates the specified course roster by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Based on any updates to the Course Roster
, the following changes might take place:
- Students who are removed from
students
will be added toinactive_students
- Graders who are removed from
graders
will be added toinactive_graders
, removed fromsuperGraders
, and removed as the leader of any Sections in this course. - Course Admins who are removed from
course_admins
will be added toinactive_courseAdmins
- Students who are added to
students
will be removed frominactive_students
- Graders who are added to
graders
will be removed frominactive_graders
- Course Admins who are added to
courseAdmins
will be removed frominactive_courseAdmins
Roster fields must be fully specified at each PATCH
If you're trying to add a user to a field, you must append the user to the existing value. If you make a request with
payload = {students: ['[email protected]']}
, you will remove all other students from your course.
Returns
Returns the updated Course Roster
if the update succeeded. This call will raise an error if update parameters are invalid.