Create 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.

Create a new 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

POST /education/classes/{educationClassId}/assignmentSettings/gradingSchemes

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 a JSON representation of the educationGradingScheme object.

You can specify the following properties when you create an educationGradingScheme.

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 204 No Content response code and an educationGradingScheme object in the response body.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/education/classes/37d99af7-cfc5-4e3b-8566-f7d40e4a2070/assignmentSettings/gradingSchemes
Content-Type: application/json

{
    "displayName": "New name 02",
    "grades": [
        {
            "displayName": "Only grade",
            "minPercentage": 0
        }
    ]
}

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": "6cf7c7f5-553e-42d0-b88c-e10db227f84f",
    "displayName": "New name 02",
    "hidePointsDuringGrading": false,
    "grades": [
        {
            "displayName": "Only grade",
            "minPercentage": 0,
            "defaultPercentage": null
        }
    ]
}