Updates one or more fields of a student submission. See google.classroom.v1.StudentSubmission for details of which fields may be updated and who may change them. This request must be made by the Developer Console project of the OAuth client ID used tocreate the corresponding course work item.

gc_courses_course_work_student_submissions_patch(
  StudentSubmission,
  courseId,
  courseWorkId,
  id,
  updateMask = NULL
)

Arguments

StudentSubmission

The gc_student_submission object to pass to this method

courseId

Identifier of the course

courseWorkId

Identifier of the course work

id

Identifier of the student submission

updateMask

Mask that identifies which fields on the student submission to update

Details

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting developer project did not createthe corresponding course work, if the user is not permitted to make therequested modification to the student submission, or foraccess errors.

  • INVALID_ARGUMENT if the request is malformed.

  • NOT_FOUND if the requested course, course work, or student submissiondoes not exist.

Authentication scopes used by this function are:

  • https://www.googleapis.com/auth/classroom.coursework.me

  • https://www.googleapis.com/auth/classroom.coursework.students

Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.coursework.me", "https://www.googleapis.com/auth/classroom.coursework.students") Then run googleAuthR::gar_auth() to authenticate. See gar_auth for details.

See also

Google Documentation

Other StudentSubmission functions: gc_student_submission()