Class CoursesResource.CourseWorkResource.StudentSubmissionsResource
The "studentSubmissions" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class StudentSubmissionsResource
Constructors
StudentSubmissionsResource(IClientService)
Constructs a new resource.
Declaration
public StudentSubmissionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
ClassroomReturn(ReturnStudentSubmissionRequest, String, String, String)
Returns 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_DENIEDif the requesting user is not permitted to access the requested course or course work, return the requested student submission, or for access errors. *INVALID_ARGUMENTif the request is malformed. *NOT_FOUNDif the requested course, course work, or student submission does not exist.
Declaration
public virtual CoursesResource.CourseWorkResource.StudentSubmissionsResource.ClassroomReturnRequest ClassroomReturn(ReturnStudentSubmissionRequest body, string courseId, string courseWorkId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| ReturnStudentSubmissionRequest | body | The body of the request. |
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.String | courseWorkId | Identifier of the course work. |
| System.String | id | Identifier of the student submission. |
Returns
| Type | Description |
|---|---|
| CoursesResource.CourseWorkResource.StudentSubmissionsResource.ClassroomReturnRequest |
Get(String, String, String)
Returns a student submission.
PERMISSION_DENIEDif the requesting user is not permitted to access the requested course, course work, or student submission or for access errors. *INVALID_ARGUMENTif the request is malformed.NOT_FOUNDif the requested course, course work, or student submission does not exist.
Declaration
public virtual CoursesResource.CourseWorkResource.StudentSubmissionsResource.GetRequest Get(string courseId, string courseWorkId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.String | courseWorkId | Identifier of the course work. |
| System.String | id | Identifier of the student submission. |
Returns
| Type | Description |
|---|---|
| CoursesResource.CourseWorkResource.StudentSubmissionsResource.GetRequest |
List(String, String)
Returns 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_DENIEDif the requesting user is not permitted to access the requested course or course work, or for access errors. *INVALID_ARGUMENTif the request is malformed. *NOT_FOUNDif the requested course does not exist.
Declaration
public virtual CoursesResource.CourseWorkResource.StudentSubmissionsResource.ListRequest List(string courseId, string courseWorkId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.String | courseWorkId | Identifier of the student work to request. This may be set to
the string literal |
Returns
| Type | Description |
|---|---|
| CoursesResource.CourseWorkResource.StudentSubmissionsResource.ListRequest |
ModifyAttachments(ModifyAttachmentsRequest, String, String, String)
Modifies 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_DENIEDif 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_ARGUMENTif the request is malformed. *NOT_FOUNDif the requested course, course work, or student submission does not exist.
Declaration
public virtual CoursesResource.CourseWorkResource.StudentSubmissionsResource.ModifyAttachmentsRequest ModifyAttachments(ModifyAttachmentsRequest body, string courseId, string courseWorkId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| ModifyAttachmentsRequest | body | The body of the request. |
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.String | courseWorkId | Identifier of the course work. |
| System.String | id | Identifier of the student submission. |
Returns
| Type | Description |
|---|---|
| CoursesResource.CourseWorkResource.StudentSubmissionsResource.ModifyAttachmentsRequest |
Patch(StudentSubmission, String, String, String)
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_DENIEDif 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_ARGUMENTif the request is malformed. *NOT_FOUNDif the requested course, course work, or student submission does not exist.
Declaration
public virtual CoursesResource.CourseWorkResource.StudentSubmissionsResource.PatchRequest Patch(StudentSubmission body, string courseId, string courseWorkId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| StudentSubmission | body | The body of the request. |
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.String | courseWorkId | Identifier of the course work. |
| System.String | id | Identifier of the student submission. |
Returns
| Type | Description |
|---|---|
| CoursesResource.CourseWorkResource.StudentSubmissionsResource.PatchRequest |
Reclaim(ReclaimStudentSubmissionRequest, String, String, String)
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_DENIEDif the requesting user is not permitted to access the requested course or course work, unsubmit the requested student submission, or for access errors. *FAILED_PRECONDITIONif the student submission has not been turned in. *INVALID_ARGUMENTif the request is malformed. *NOT_FOUNDif the requested course, course work, or student submission does not exist.
Declaration
public virtual CoursesResource.CourseWorkResource.StudentSubmissionsResource.ReclaimRequest Reclaim(ReclaimStudentSubmissionRequest body, string courseId, string courseWorkId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| ReclaimStudentSubmissionRequest | body | The body of the request. |
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.String | courseWorkId | Identifier of the course work. |
| System.String | id | Identifier of the student submission. |
Returns
| Type | Description |
|---|---|
| CoursesResource.CourseWorkResource.StudentSubmissionsResource.ReclaimRequest |
TurnIn(TurnInStudentSubmissionRequest, String, String, String)
Turns 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_DENIEDif 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_ARGUMENTif the request is malformed. *NOT_FOUNDif the requested course, course work, or student submission does not exist.
Declaration
public virtual CoursesResource.CourseWorkResource.StudentSubmissionsResource.TurnInRequest TurnIn(TurnInStudentSubmissionRequest body, string courseId, string courseWorkId, string id)
Parameters
| Type | Name | Description |
|---|---|---|
| TurnInStudentSubmissionRequest | body | The body of the request. |
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.String | courseWorkId | Identifier of the course work. |
| System.String | id | Identifier of the student submission. |
Returns
| Type | Description |
|---|---|
| CoursesResource.CourseWorkResource.StudentSubmissionsResource.TurnInRequest |