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.
HTTP request
POST https://classroom.googleapis.com/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-05 UTC."],[[["This endpoint enables students to turn in their submissions for a specific coursework item within a course."],["It requires the student to be the owner of the submission and the request to be made by the Developer Console project associated with the OAuth client ID."],["The request body should be empty, and a successful response will also be empty."],["Authorization is required with the `https://www.googleapis.com/auth/classroom.coursework.me` scope."],["Potential errors include permission issues, invalid requests, and cases where the course, coursework, or submission doesn't exist."]]],[]]