Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. * `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.patch
.
Synopsis
- type CoursesCourseWorkStudentSubmissionsPatchResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] StudentSubmission :> Patch '[JSON] StudentSubmission))))))))))))))
- coursesCourseWorkStudentSubmissionsPatch :: Text -> StudentSubmission -> Text -> Text -> CoursesCourseWorkStudentSubmissionsPatch
- data CoursesCourseWorkStudentSubmissionsPatch
- ccwsspXgafv :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Xgafv)
- ccwsspUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text)
- ccwsspUpdateMask :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe GFieldMask)
- ccwsspCourseId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text
- ccwsspAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text)
- ccwsspUploadType :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text)
- ccwsspPayload :: Lens' CoursesCourseWorkStudentSubmissionsPatch StudentSubmission
- ccwsspId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text
- ccwsspCallback :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text)
- ccwsspCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text
REST Resource
type CoursesCourseWorkStudentSubmissionsPatchResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "courseWorkId" Text :> ("studentSubmissions" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] StudentSubmission :> Patch '[JSON] StudentSubmission)))))))))))))) Source #
A resource alias for classroom.courses.courseWork.studentSubmissions.patch
method which the
CoursesCourseWorkStudentSubmissionsPatch
request conforms to.
Creating a Request
coursesCourseWorkStudentSubmissionsPatch Source #
Creates a value of CoursesCourseWorkStudentSubmissionsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesCourseWorkStudentSubmissionsPatch Source #
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 to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.
See: coursesCourseWorkStudentSubmissionsPatch
smart constructor.
Instances
Request Lenses
ccwsspXgafv :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Xgafv) Source #
V1 error format.
ccwsspUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ccwsspUpdateMask :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe GFieldMask) Source #
Mask that identifies which fields on the student submission to update. This field is required to do an update. The update fails if invalid fields are specified. The following fields may be specified by teachers: * `draft_grade` * `assigned_grade`
ccwsspCourseId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
ccwsspAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text) Source #
OAuth access token.
ccwsspUploadType :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ccwsspPayload :: Lens' CoursesCourseWorkStudentSubmissionsPatch StudentSubmission Source #
Multipart request metadata.
ccwsspId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text Source #
Identifier of the student submission.
ccwsspCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text Source #
Identifier of the course work.