Replace an assignment's audience
PUT/api/courses/:id/assignments/:aid/assignees
Replaces an assignment's audience. Course staff (faculty or TAs) or a system admin. assignedToEveryone true clears the explicit list; false assigns only the given targets (students for an individual assignment, groups for a group assignment). Overrides for anyone no longer assigned are dropped in the same transaction.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The updated assignment.
Invalid audience for this assignment's type.
Not signed in.
Not course staff or a system admin.
Assignment not found in this course.
Server error.