Sign in

Patch add-on attachment for course work

documented

Updates an add-on attachment for course work.

PATCH /v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}Coursesno implementation yet0 runs
No 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/{{$itemId}}/addOnAttachments/{{$attachmentId}}?updateMask={{$updateMask}}" \
  -X PATCH \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"title": "{{$title}}", "teacherViewUri": "{{$teacherViewUri}}", "studentViewUri": "{{$studentViewUri}}", "studentWorkReviewUri": "{{$studentWorkReviewUri}}", "dueDate": {"year": {{$dueDateYear}}, "month": {{$dueDateMonth}}, "day": {{$dueDateDay}}}, "dueTime": {"hours": {{$dueTimeHours}}, "minutes": {{$dueTimeMinutes}}}, "maxPoints": {{$maxPoints}}}'"