Patch add-on attachment for course work material
documentedUpdates an add-on attachment for course work material.
PATCH /v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments/{attachmentId}Coursesno 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}}/courseWorkMaterials/{{$itemId}}/addOnAttachments/{{$attachmentId}}?postId={{$postId}}&updateMask={{$updateMask}}" \
-X PATCH \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title": "{{$title}}", "teacherViewUri": "{{$teacherViewUri}}", "studentViewUri": "{{$studentViewUri}}", "studentWorkReviewUri": "{{$studentWorkReviewUri}}", "dueDate": {"year": {{$dueDateYear}}, "month": {{$dueDateMonth}}, "day": {{$dueDateDay}}}, "dueTime": {"hours": {{$dueTimeHours}}, "minutes": {{$dueTimeMinutes}}, "seconds": {{$dueTimeSeconds}}}, "maxPoints": {{$maxPoints}} }'"