Grade a Google Classroom StudentSubmission and return it to the student

domain: education · 4 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call PATCH .../courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id} (courses.courseWork.studentSubmissions.patch) with an updateMask naming only the fields to change, e.g. updateMask=draftGrade,assignedGrade — these are the only two fields teachers may specify in the mask.
  2. Send a StudentSubmission body with the new draftGrade and/or assignedGrade numeric values (non-negative; decimals rounded to two places).
  3. Call POST .../courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return (courses.courseWork.studentSubmissions.return) with an empty body to return the submission, which transfers ownership of attached Drive files to the student.
  4. Authorize both calls with scope classroom.coursework.students, using the same OAuth client ID/Developer Console project that originally created the course work.

Known gotchas

Related routes

return a graded submission to a student via the Microsoft Graph educationSubmission: return action
learn.microsoft.com · 5 steps · unrated
Create coursework and retrieve student submissions via Google Classroom API
classroom.google.com · 5 steps · unrated
Create a Google Classroom add-on activity attachment that captures a student submission and posts a grade
developers.google.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans