Skip to main content

student_submissions

Overview

Namestudent_submissions
TypeResource
Idgoogleworkspace.classroom.student_submissions

Fields

NameDatatypeDescription
idstringClassroom-assigned Identifier for the student submission. This is unique among submissions for the relevant course work. Read-only.
draftGradenumberOptional pending grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This is only visible to and modifiable by course teachers.
courseWorkTypestringType of course work this submission is for. Read-only.
courseIdstringIdentifier of the course. Read-only.
multipleChoiceSubmissionobjectStudent work for a multiple-choice question.
userIdstringIdentifier for the student that owns this submission. Read-only.
assignedGradenumberOptional grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This may be modified only by course teachers.
statestringState of this submission. Read-only.
courseWorkIdstringIdentifier for the course work this corresponds to. Read-only.
creationTimestringCreation time of this submission. This may be unset if the student has not accessed this item. Read-only.
latebooleanWhether this submission is late. Read-only.
updateTimestringLast update time of this submission. This may be unset if the student has not accessed this item. Read-only.
associatedWithDeveloperbooleanWhether this student submission is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only.
alternateLinkstringAbsolute link to the submission in the Classroom web UI. Read-only.
submissionHistoryarrayThe history of the submission (includes state and grade histories). Read-only.
shortAnswerSubmissionobjectStudent work for a short answer question.
assignmentSubmissionobjectStudent work for an assignment.

Methods

NameAccessible byRequired ParamsDescription
courses_courseWork_studentSubmissions_getSELECTcourseId, courseWorkId, idReturns a student submission. PERMISSION_DENIED if the requesting user is not permitted to access the requested course, course work, or 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.
courses_courseWork_studentSubmissions_listSELECTcourseId, courseWorkIdReturns a list of student submissions that the requester is permitted to view, factoring in the OAuth scopes of the request. - may be specified as the course_work_id to include student submissions for multiple course work items. Course students may only view their own work. Course teachers and domain administrators may view all student submissions. This method returns the following error codes: PERMISSION_DENIED if the requesting user is not permitted to access the requested course or course work, or for access errors. INVALID_ARGUMENT if the request is malformed. * NOT_FOUND if the requested course does not exist.
courses_courseWork_studentSubmissions_modifyAttachmentsEXECcourseId, courseWorkId, idModifies attachments of student submission. Attachments may only be added to student submissions belonging to course work objects with a workType of ASSIGNMENT. 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, if the user is not permitted to modify attachments on 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 submission does not exist.
courses_courseWork_studentSubmissions_patchEXECcourseId, courseWorkId, idUpdates 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.
courses_courseWork_studentSubmissions_reclaimEXECcourseId, courseWorkId, idReclaims 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.
courses_courseWork_studentSubmissions_returnEXECcourseId, courseWorkId, idReturns a student submission. Returning a student submission transfers ownership of attached Drive files to the student and may also update the submission state. Unlike the Classroom application, returning a student submission does not set assignedGrade to the draftGrade value. Only a teacher of the course that contains the requested student submission may call this method. 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, return 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 submission does not exist.
courses_courseWork_studentSubmissions_turnInEXECcourseId, courseWorkId, idTurns in a student submission. Turning in a student submission transfers ownership of attached Drive files to the teacher and may also update the submission state. This may only be called by the student that owns the specified student submission. 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, 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 submission does not exist.