Sign in

Create add-on attachment for course work

documented

Creates an add-on attachment under a course work.

POST /v1/courses/{courseId}/courseWork/{itemId}/addOnAttachmentsCoursesno 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?addOnToken={{addOnToken}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{\"teacherViewUri\": {\"uri\": \"{{$teacherViewUri}}\"}, \"studentViewUri\": {\"uri\": \"{{$studentViewUri}}\"}, \"title\": \"{{$title}}\"}'