Batch set/clear a student's problem grades for an assignment
POST/api/courses/:id/assignments/:aid/problem-grades/:studentId
Batch-saves this student's problem grades for the assignment in a single request; the write counterpart to the GET above (co-located as the same resource). The body maps problemId → grade (a number within [0, maxPoints], or null to clear). Course staff (faculty or TAs) or a system admin. Only problems whose grade actually changed are written: a null for a graded problem deletes it, a number upserts it (existing feedback is left untouched), and unchanged problems are skipped. Every applied change is audited with its previous value, mirroring the single-problem grade route.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Batch applied; returns the number of problems changed.
Bad body, unknown problem id, or a grade out of range.
Not signed in.
Caller is not course staff (faculty or TA) or a system admin.
Assignment not found in this course.
Server error.