Update educationGradingScheme
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.
Update the properties of an educationGradingScheme object.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | EduAssignments.ReadWriteBasic | EduAssignments.ReadWrite |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Not supported. | Not supported. |
HTTP request
PATCH /education/classes/{educationClassId}/assignmentSettings/gradingSchemes/{educationGradingSchemeId}
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Content-Type | application/json. Required. |
Request body
In the request body, supply only the values for properties to update. Existing properties that aren't included in the request body maintain their previous values or are recalculated based on changes to other property values.
The following table specifies the properties that can be updated.
Property | Type | Description |
---|---|---|
displayName | String | The name of the grading scheme. |
grades | educationGradingSchemeGrade collection | The name of the grading scheme. |
hidePointsDuringGrading | Boolean | The display setting for the UI. Indicates whether teachers can grade with points in addition to letter grades. |
Response
If successful, this method returns a 200 OK
response code and an updated educationGradingScheme object in the response body.
Examples
Example 1: Update educationGradingScheme
Request
The following example shows a request.
PATCH https://graph.microsoft.com/beta/education/classes/37d99af7-cfc5-4e3b-8566-f7d40e4a2070/assignmentSettings/gradingschemes/d0c2769f-cd0f-4e30-8d1d-9312270de5c4
Content-Type: application/json
{
"displayName": "New GradingScheme name"
}
Response
The following example shows the response.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#education/classes('37d99af7-cfc5-4e3b-8566-f7d40e4a2070')/assignmentSettings/gradingSchemes/$entity",
"id": "d0c2769f-cd0f-4e30-8d1d-9312270de5c4",
"displayName": "New GradingScheme name",
"hidePointsDuringGrading": false,
"grades": [
{
"displayName": "Great",
"minPercentage": 82,
"defaultPercentage": null
},
{
"displayName": "Good",
"minPercentage": 70,
"defaultPercentage": null
},
{
"displayName": "Okay",
"minPercentage": 0,
"defaultPercentage": null
}
]
}
Example 2: Update educationGradingScheme by using delta payload
Request
The following example shows a request.
PATCH https://graph.microsoft.com/beta/education/classes/37d99af7-cfc5-4e3b-8566-f7d40e4a2070/assignmentSettings/gradingschemes/
Content-Type: application/json
{
"@context": "#$delta",
"value": [
{
"id": "e445acb2-145e-466f-a070-f677d4178f93",
"displayName": "New Pass - fail Scheme created",
"hidePointsDuringGrading": true
},
{
"displayName": "New Qualitative Scheme",
"grades": [
{
"displayName": "Great",
"minPercentage": 82
},
{
"displayName": "Good",
"minPercentage": 70
},
{
"displayName": "Okay",
"minPercentage": 0
}
]
},
{
"@removed": {
"reason": "deleted"
},
"id": "d99ee8a9-a3f2-4f93-9183-4d86b8d4930b"
}
]
}
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#education/classes('37d99af7-cfc5-4e3b-8566-f7d40e4a2070')/assignmentSettings/gradingSchemes/$delta",
"value": [
{
"id": "d0c2769f-cd0f-4e30-8d1d-9312270de5c4",
"displayName": "New Qualitative Scheme",
"hidePointsDuringGrading": false,
"grades": [
{
"displayName": "Great",
"minPercentage": 82,
"defaultPercentage": null
},
{
"displayName": "Good",
"minPercentage": 70,
"defaultPercentage": null
},
{
"displayName": "Okay",
"minPercentage": 0,
"defaultPercentage": null
}
]
},
{
"id": "e445acb2-145e-466f-a070-f677d4178f93",
"displayName": "New Pass - fail Scheme created",
"hidePointsDuringGrading": true,
"grades": [
{
"displayName": "Great",
"minPercentage": 82,
"defaultPercentage": null
},
{
"displayName": "Good",
"minPercentage": 70,
"defaultPercentage": null
},
{
"displayName": "Okay",
"minPercentage": 0,
"defaultPercentage": null
}
]
}
]
}