List submissions
Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
List all the submissions associated with an assignment.
A teacher or an application with application permissions can get all the submissions, a student can only get submissions that they are associated with.
Provide the header Prefer: include-unknown-enum-members
to properly list submissions with the reassigned
status. For details, see the examples section.
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.ReadBasic, EduAssignments.ReadWriteBasic, EduAssignments.Read, EduAssignments.ReadWrite |
Delegated (personal Microsoft account) | Not supported. |
Application | EduAssignments.ReadBasic.All, EduAssignments.ReadWriteBasic.All, EduAssignments.Read.All, EduAssignments.ReadWrite.All |
HTTP request
GET /education/classes/{class-id}/assignments/{assignment-id}/submissions
Optional query parameters
This method supports the OData query parameters to help customize the response.
The following are the available $expand
options for this method: outcomes
, resources
, submittedResources
, and *
, which includes all the previous options.
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
Prefer | include-unknown-enum-members . Optional. |
Request body
Don't supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and collection of educationSubmission objects in the response body.
Examples
Example 1: Get submissions
Request
The following is an example of the request.
GET https://graph.microsoft.com/beta/education/classes/f4a941ff-9da6-4707-ba5b-0eae93cad0b4/assignments/3c77de7f-539b-49e1-9c96-1274f2f0ee3b/submissions
Response
The following is an example of the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
Content-length: 873
{
"value": [
{
"status": "working",
"submittedDateTime": null,
"unsubmittedDateTime": null,
"returnedDateTime": null,
"resourcesFolderUrl": "https://graph.microsoft.com/beta/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEDJCE5LX4OXABF37QSORAK5WKQD",
"id": "4af73d2b-6b9c-493f-0688-979087bed39b",
"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": null,
"displayName": null
}
}
}
]
}
Example 2: Get submissions with $expand options
Request
The following is an example of the request.
GET https://graph.microsoft.com/beta/education/classes/72a7baec-c3e9-4213-a850-f62de0adad5f/assignments/efcdf80b-a5de-42ac-8579-e40b0223d48b/submissions?$expand=outcomes
Response
The following is an example of the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
Content-length: 4492
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#education/classes('72a7baec-c3e9-4213-a850-f62de0adad5f')/assignments('efcdf80b-a5de-42ac-8579-e40b0223d48b')/submissions(outcomes())",
"value": [
{
"status": "returned",
"submittedDateTime": null,
"unsubmittedDateTime": null,
"returnedDateTime": "2021-10-13T15:57:00.0349869Z",
"reassignedDateTime": null,
"resourcesFolderUrl": null,
"id": "9bc724ee-d314-1ec5-725d-5f81228e85a6",
"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
}
},
"reassignedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
},
"outcomes": [
{
"@odata.type": "#microsoft.graph.educationFeedbackOutcome",
"lastModifiedDateTime": null,
"id": "ca05367a-b292-42d5-aff7-5d279feeace8",
"lastModifiedBy": null,
"feedback": null,
"publishedFeedback": null
},
{
"@odata.type": "#microsoft.graph.educationPointsOutcome",
"lastModifiedDateTime": null,
"id": "ea1351f6-ba33-4940-b2cb-6a7254af2dc8",
"lastModifiedBy": null,
"points": null,
"publishedPoints": null
},
{
"@odata.type": "#microsoft.graph.educationRubricOutcome",
"lastModifiedDateTime": "2021-10-13T15:57:00.0076092Z",
"id": "65a46d78-1a2b-4a7e-bcf8-78a22ac2611b",
"lastModifiedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
},
"rubricQualityFeedback": [
{
"qualityId": "f4c7b781-4c0c-4113-a5fb-c0885b7ab510",
"feedback": null
}
],
"rubricQualitySelectedLevels": [
{
"qualityId": "f4c7b781-4c0c-4113-a5fb-c0885b7ab510",
"columnId": "ef99fe68-b6f8-4f67-a13b-9a81c1724788"
}
],
"publishedRubricQualityFeedback": [
{
"qualityId": "f4c7b781-4c0c-4113-a5fb-c0885b7ab510",
"feedback": null
}
],
"publishedRubricQualitySelectedLevels": [
{
"qualityId": "f4c7b781-4c0c-4113-a5fb-c0885b7ab510",
"columnId": "ef99fe68-b6f8-4f67-a13b-9a81c1724788"
}
]
}
]
}
]
}
Example 3: Get submissions - Request with optional Prefer header
Request
The following is an example of the request.
GET https://graph.microsoft.com/beta/education/classes/59069eb2-2a09-4d90-bb19-2089cc69d613/assignments/80da1069-a635-4913-813f-d775a5470a8f/submissions
Prefer: include-unknown-enum-members
Response
The following is an example of the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
Content-length: 4492
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#education/classes('59069eb2-2a09-4d90-bb19-2089cc69d613')/assignments('80da1069-a635-4913-813f-d775a5470a8f')/submissions",
"value": [
{
"status": "working",
"submittedDateTime": null,
"unsubmittedDateTime": null,
"returnedDateTime": null,
"reassignedDateTime": null,
"resourcesFolderUrl": null,
"id": "f51a6687-a4a3-a8d9-ac4a-6ff81c5a8da7",
"recipient": {
"@odata.type": "#microsoft.graph.educationSubmissionIndividualRecipient",
"userId": "0ca0dd79-57eb-4903-97dc-88c769dd2a3d"
},
"submittedBy": {
"application": null,
"device": null,
"user": {
"id": "0ca0dd79-57eb-4903-97dc-88c769dd2a3d",
"displayName": null
}
},
"unsubmittedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
},
"returnedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
},
"reassignedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
}
},
{
"status": "reassigned",
"submittedDateTime": "2021-11-10T00:57:17.0495233Z",
"unsubmittedDateTime": null,
"returnedDateTime": null,
"reassignedDateTime": "2021-11-10T01:03:25.7812455Z",
"resourcesFolderUrl": null,
"id": "869369de-3e5a-89eb-6f2d-83cd88f860b5",
"recipient": {
"@odata.type": "#microsoft.graph.educationSubmissionIndividualRecipient",
"userId": "723e2402-f503-4825-a4d5-5143fbe6f53d"
},
"submittedBy": {
"application": null,
"device": null,
"user": {
"id": "723e2402-f503-4825-a4d5-5143fbe6f53d",
"displayName": null
}
},
"unsubmittedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
},
"returnedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
},
"reassignedBy": {
"application": null,
"device": null,
"user": {
"id": "afc58f1f-7c9e-4770-a448-e53ba43463a5",
"displayName": null
}
}
}
]
}
Feedback
Submit and view feedback for