Update educationRubric
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 educationRubric object. Only teachers can perform this operation.
Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric
) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics
. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it cannot be updated.
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/me/rubrics/{id}
PATCH /education/classes/{id}/assignments/{id}/rubric
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Request body
In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance, don't include existing values that haven't changed.
Property | Type | Description |
---|---|---|
description | itemBody | The description of this rubric. |
displayName | String | The name of this rubric. |
grading | educationAssignmentGradeType | The grading type of the rubric. null for a no-points rubric and educationAssignmentPointsGradeType for a rubric with points. |
levels | rubricLevel collection | The collection of levels making up this rubric. |
qualities | rubricQuality collection | The collection of qualities making up this rubric. |
Response
If successful, this method returns a 200 OK
response code and an updated educationRubric object in the response body.
Examples
Request
The following example shows a request.
PATCH https://graph.microsoft.com/beta/education/me/rubrics/{id}
Content-type: application/json
{
"displayName": "Example Credit Rubric after display name patch"
}
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
{
"displayName": "Example Credit Rubric after display name patch",
"id": "c4459fcb-a761-4f70-ac5b-e9466cb77c2a",
"description": {
"content": "This is an example of a credit rubric (no points)",
"contentType": "text"
},
"levels": [
{
"levelId": "dec665d4-cf1b-4481-ac61-1d5b6188f4f5",
"displayName": "Good",
"description": {
"content": "",
"contentType": "text"
}
},
{
"levelId": "3f2e4b0f-508e-4005-984b-17e061bc5377",
"displayName": "Poor",
"description": {
"content": "",
"contentType": "text"
}
}
],
"qualities": [
{
"qualityId": "dc79dcbf-b536-4797-9c5b-902f28129fd0",
"description": {
"content": "Argument",
"contentType": "text"
},
"criteria": [
{
"id": "8937fa15-4a7c-4f27-bd01-ca3471d2d1d5",
"description": {
"content": "The essay's argument is persuasive.",
"contentType": "text"
}
},
{
"id": "4dfb5263-1d3f-4f0a-93ef-d24d800d0f69",
"description": {
"content": "The essay's argument does not make sense.",
"contentType": "text"
}
}
]
},
{
"qualityId": "7e087062-ac25-4629-8386-a946350936db",
"description": {
"content": "Spelling and Grammar",
"contentType": "text"
},
"criteria": [
{
"id": "12276eb2-122c-4ad2-ba92-335ea798c88e",
"description": {
"content": "The essay uses proper spelling and grammar with few or no errors.",
"contentType": "text"
}
},
{
"id": "3db7e6b2-2b1b-4f8e-9fca-bea701159145",
"description": {
"content": "The essay has numerous errors in spelling and/or grammar.",
"contentType": "text"
}
}
]
}
]
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for