Create a course and post coursework via the Google Classroom API

domain: classroom.googleapis.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate using OAuth 2.0 with scopes including https://www.googleapis.com/auth/classroom.courses and https://www.googleapis.com/auth/classroom.coursework.students
  2. POST to /v1/courses with a Course resource body containing name, section, descriptionHeading, and ownerId (teacher's email or me)
  3. Record the id field from the created course response for subsequent calls
  4. POST to /v1/courses/:courseId/courseWork with a CourseWork resource specifying title, workType (ASSIGNMENT or SHORT_ANSWER_QUESTION), dueDate, dueTime, maxPoints, and state PUBLISHED
  5. To attach materials, include a materials array in the CourseWork body with DriveFile, YouTubeVideo, Link, or Form material objects
  6. Verify the assignment appears in the Classroom UI and that the dueDate displays correctly in the student's timezone

Known gotchas

Related routes

Create coursework and retrieve student submissions via Google Classroom API
classroom.google.com · 5 steps · unrated
Create graded coursework in a Google Classroom course using the Classroom API.
developers.google.com · 5 steps · unrated
Create a CourseWork assignment in Google Classroom and retrieve its student submissions
education · 5 steps · unrated

Give your agent this knowledge — and 15,600+ 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