Copyright | (c) 2015-2025 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <[email protected]> Toni Cebrián <[email protected]> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | GHC2021 |
Gogol.Classroom.Courses.CourseWork.StudentSubmissions.Reclaim
Contents
Description
Reclaims a student submission on behalf of the student that owns it. Reclaiming a student submission transfers ownership of attached Drive files to the student and updates the submission state. Only the student that owns the requested student submission may call this method, 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 to create the corresponding course work item. This method returns the following error codes: * PERMISSION_DENIED
if the requesting user is not permitted to access the requested 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 submission does not exist.
See: Google Classroom API Reference for classroom.courses.courseWork.studentSubmissions.reclaim
.
Synopsis
- type ClassroomCoursesCourseWorkStudentSubmissionsReclaimResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (CaptureMode "id" "reclaim" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "access_token" Text :> (QueryParam "callback" Text :> (QueryParam "uploadType" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReclaimStudentSubmissionRequest :> Post '[JSON] Empty)))))))))))))
- data ClassroomCoursesCourseWorkStudentSubmissionsReclaim = ClassroomCoursesCourseWorkStudentSubmissionsReclaim {}
- newClassroomCoursesCourseWorkStudentSubmissionsReclaim :: Text -> Text -> Text -> ReclaimStudentSubmissionRequest -> ClassroomCoursesCourseWorkStudentSubmissionsReclaim
Resource
type ClassroomCoursesCourseWorkStudentSubmissionsReclaimResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (CaptureMode "id" "reclaim" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "access_token" Text :> (QueryParam "callback" Text :> (QueryParam "uploadType" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReclaimStudentSubmissionRequest :> Post '[JSON] Empty))))))))))))) Source #
A resource alias for classroom.courses.courseWork.studentSubmissions.reclaim
method which the
ClassroomCoursesCourseWorkStudentSubmissionsReclaim
request conforms to.
Constructing a Request
data ClassroomCoursesCourseWorkStudentSubmissionsReclaim Source #
Reclaims a student submission on behalf of the student that owns it. Reclaiming a student submission transfers ownership of attached Drive files to the student and updates the submission state. Only the student that owns the requested student submission may call this method, 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 to create the corresponding course work item. This method returns the following error codes: * PERMISSION_DENIED
if the requesting user is not permitted to access the requested 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 submission does not exist.
See: newClassroomCoursesCourseWorkStudentSubmissionsReclaim
smart constructor.
Constructors
ClassroomCoursesCourseWorkStudentSubmissionsReclaim | |
Fields
|
Instances
newClassroomCoursesCourseWorkStudentSubmissionsReclaim Source #
Arguments
:: Text | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. See |
-> Text | Identifier of the course work. See |
-> Text | Identifier of the student submission. See |
-> ReclaimStudentSubmissionRequest | Multipart request metadata. See |
-> ClassroomCoursesCourseWorkStudentSubmissionsReclaim |
Creates a value of ClassroomCoursesCourseWorkStudentSubmissionsReclaim
with the minimum fields required to make a request.