educationSubmission: return
Namespace: microsoft.graph
Make the grade and feedback associated with this submission available to the student.
This action changes the status of the submission from "submitted" to "returned" and indicates that feedback is provided or grading is done. This action can only be done by the teacher.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | EduAssignments.ReadWriteBasic, EduAssignments.ReadWrite |
Delegated (personal Microsoft account) | Not supported. |
Application | EduAssignments.ReadWrite.All, EduAssignments.ReadWriteBasic.All |
HTTP request
POST /education/classes/{class-id}/assignments/{assignment-id}/submissions/{submission-id}/return
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Don't supply a request body for this method.
Response
If successful, this method returns a 200 Ok
response code and an educationSubmission object in the response body.
Example
The following example shows how to call this API.
Request
The following is an example of the request.
POST https://graph.microsoft.com/v1.0/education/classes/72a7baec-c3e9-4213-a850-f62de0adad5f/assignments/7192332b-e904-4891-81e2-356242ab1858/submissions/022fb52d-1278-d21f-e827-2221a6a3e516/return
Response
The following is an example of the response.
HTTP/1.1 200 Ok
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#educationSubmission",
"@odata.type": "#microsoft.graph.educationSubmission",
"status": "returned",
"submittedDateTime": "2021-09-03T18:20:11.2167718Z",
"unsubmittedDateTime": null,
"returnedDateTime": "2021-09-03T19:01:45.6526389Z",
"resourcesFolderUrl": "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RKYRQDN3FDQWNA24OCLHBD5C2SH",
"id": "022fb52d-1278-d21f-e827-2221a6a3e516",
"recipient": {
"@odata.type": "#microsoft.graph.educationSubmissionIndividualRecipient",
"userId": "80cefd93-8d88-40e2-b5d3-67898383e226"
},
"submittedBy": {
"application": null,
"device": null,
"user": {
"id": "80cefd93-8d88-40e2-b5d3-67898383e226",
"displayName": null
}
},
"unsubmittedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
},
"returnedBy": {
"application": null,
"device": null,
"user": {
"id": "f3a5344e-dbde-48b0-be24-b5b62a243836",
"displayName": null
}
}
}
See also
Feedback
Submit and view feedback for