Create course work
documentedCreates a course work (assignment) in the course.
POST /v1/courses/{courseId}/courseWorkCoursesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://classroom.googleapis.com/v1/courses/{{$courseId}}/courseWork" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title": "{{$title}}", "description": "{{$description}}", "workType": "{{$workType}}", "dueDate": {"year": {{$dueYear}}, "month": {{$dueMonth}}, "day": {{$dueDay}} }, "dueTime": {"hours": {{$dueHours}}, "minutes": {{$dueMinutes}}, "seconds": {{$dueSeconds}} }, "materials": [{ "link": { "title": "{{$materialTitle}}", "url": "{{$materialUrl}}" } }], "maxPoints": {{$maxPoints}}, "state": "{{$state}}" }'