Skip to main content

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.

View source

Request

Responses

Batch applied; returns the number of problems changed.