Turns in a student submission

gc_courses_course_work_student_submissions_turn_in(
  TurnInStudentSubmissionRequest,
  courseId,
  courseWorkId,
  id
)

Arguments

TurnInStudentSubmissionRequest

The gc_turn_in_student_submission_request object to pass to this method

courseId

Identifier of the course

courseWorkId

Identifier of the course work

id

Identifier of the student submission

Details

Turning in a student submission transfers ownership of attached Drivefiles to the teacher and may also update the submission state. This may only be called by the student that owns the specified studentsubmission. This request must be made by the Developer Console project of the OAuth client ID used tocreate the corresponding course work item.

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to access therequested course or course work, turn in the requested student submission,or for access 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

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

See also

Google Documentation

Other TurnInStudentSubmissionRequest functions: gc_turn_in_student_submission_request()