Patch add-on attachment for course work
documentedUpdates an add-on attachment for course work.
POST /v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}:patchCoursesno 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/{{$course_id}}/courseWork/{{$item_id}}/addOnAttachments/{{$attachment_id}}?postId={{$post_id}}&updateMask={{$update_mask}}" \
-X PATCH \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title": "{{$title}}", "teacherViewUri": {"uri": "{{$teacherViewUri}}"}, "studentViewUri": {"uri": "{{$studentViewUri}}"}, "studentWorkReviewUri": {"uri": "{{$studentWorkReviewUri}}"}, "dueDate": {"year": {{$year}}, "month": {{$month}}, "day": {{$day}}}, "dueTime": {"hours": {{$hours}}, "minutes": {{$minutes}}}, "maxPoints": {{$maxPoints}} }'"