R/classroom_functions.R
gc_courses_course_work_student_submissions_reclaim.Rd
Reclaims a student submission on behalf of the student that owns it. Reclaiming a student submission transfers ownership of attached Drivefiles to the student and updates the submission state. Only the student that owns the requested student submission may call thismethod, and only for a student submission that has been turned in. 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_reclaim( ReclaimStudentSubmissionRequest, courseId, courseWorkId, id )
ReclaimStudentSubmissionRequest | The gc_reclaim_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 |
This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to access therequested course or course work, unsubmit the requested student submission,or for access errors.
FAILED_PRECONDITION
if the student submission has not been turned in.
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.
Other ReclaimStudentSubmissionRequest functions:
gc_reclaim_student_submission_request()