educationRubric を更新する

名前空間: microsoft.graph

educationRubric オブジェクトのプロパティを更新します。 この操作を実行できるのは教師だけです。

割り当てにアタッチされたルーブリック (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) の更新は、割り当てが発行される前にのみ可能であり、更新されるのは実際には、 /education/users/{id}/rubricsの下に存在する元のルーブリックです。 割り当てが発行されると、ルーブリックの変更できないコピーが作成され、その特定の割り当てにアタッチされます。 このルーブリックは GET /education/classes/{class-id}/assignments/{assignment-id}/rubric を使用して取得できますが、更新することはできません。

この API は、次の国内クラウド展開で使用できます。

グローバル サービス 米国政府機関 L4 米国政府機関 L5 (DOD) 21Vianet が運営する中国

アクセス許可

この API の最小特権としてマークされているアクセス許可またはアクセス許可を選択します。 アプリで必要な場合にのみ、より高い特権のアクセス許可またはアクセス許可を使用します。 委任されたアクセス許可とアプリケーションのアクセス許可の詳細については、「アクセス許可の種類」を参照してください。 これらのアクセス許可の詳細については、「アクセス許可のリファレンス」を参照してください。

アクセス許可の種類 最小特権アクセス許可 より高い特権のアクセス許可
委任 (職場または学校のアカウント) EduAssignments.ReadWriteBasic EduAssignments.ReadWrite
委任 (個人用 Microsoft アカウント) サポートされていません。 サポートされていません。
アプリケーション サポートされていません。 サポートされていません。

HTTP 要求

PATCH /education/me/rubrics/{id}
PATCH /education/classes/{id}/assignments/{id}/rubric

要求ヘッダー

名前 説明
Authorization ベアラー {token}。 必須です。 認証と認可についての詳細をご覧ください。

要求本文

要求本文で、更新する関連フィールドの値を指定します。 要求本文に含まれていない既存のプロパティは、以前の値を維持するか、他のプロパティ値の変更に基づいて再計算されます。 最適なパフォーマンスを得るために、変更されていない既存の値を含めないでください。

プロパティ 説明
description itemBody このルーブリックの説明。
displayName String このルーブリックの名前。
採点 educationAssignmentGradeType ルーブリックのグレーディングタイプ。 null ポイントなしルーブリックと educationAssignmentPointsGradeType の場合は、ポイントを持つルーブリックです。
レベル rubricLevel コレクション このルーブリックを構成するレベルのコレクション。
資質 rubricQuality コレクション このルーブリックを構成する品質のコレクション。

応答

成功した場合、このメソッドは応答コード 200 OK と、応答本文で更新された educationRubric オブジェクトを返します。

要求

次の例は要求を示しています。

PATCH https://graph.microsoft.com/v1.0/education/me/rubrics/5f650796-a600-4d20-87ef-c46ae34da3bb
Content-type: application/json

{
  "displayName": "Example Credit Rubric after display name patch"
}

応答

次の例は応答を示しています。

注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。

HTTP/1.1 200 OK
Content-type: application/json

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#education/me/rubrics/$entity",
    "displayName": "Example Credit Rubric after display name patch",
    "createdDateTime": "2024-07-17T00:21:14.4479093Z",
    "lastModifiedDateTime": "2024-07-17T15:00:08.5062776Z",
    "id": "5f650796-a600-4d20-87ef-c46ae34da3bb",
    "description": {
        "content": "New Rubric",
        "contentType": "text"
    },
    "qualities": [
        {
            "qualityId": "bdde7fc5-9a0b-4db7-9103-aeb6d4d20fbd",
            "displayName": null,
            "weight": 33.33,
            "description": {
                "content": "First quality",
                "contentType": "text"
            },
            "criteria": [
                {
                    "description": {
                        "content": "First quality is excellent",
                        "contentType": "text"
                    }
                },
                {
                    "description": {
                        "content": "First quality is good",
                        "contentType": "text"
                    }
                },
                {
                    "description": {
                        "content": "First quality is fair",
                        "contentType": "text"
                    }
                },
                {
                    "description": {
                        "content": "First quality is poor",
                        "contentType": "text"
                    }
                }
            ]
        }
    ],
    "levels": [
        {
            "levelId": "f0b16138-3ab2-4712-bbe0-b0a2653017a1",
            "displayName": "Excellent",
            "description": {
                "content": "",
                "contentType": "text"
            },
            "grading": {
                "@odata.type": "#microsoft.graph.educationAssignmentPointsGradeType",
                "maxPoints": 4
            }
        },
        {
            "levelId": "f5b1cc98-a22e-44d6-8e20-a29fb7de4860",
            "displayName": "Good",
            "description": {
                "content": "",
                "contentType": "text"
            },
            "grading": {
                "@odata.type": "#microsoft.graph.educationAssignmentPointsGradeType",
                "maxPoints": 3
            }
        },
        {
            "levelId": "352dfa9f-0ad3-42c5-a7b7-843dc78d83f9",
            "displayName": "Fair",
            "description": {
                "content": "",
                "contentType": "text"
            },
            "grading": {
                "@odata.type": "#microsoft.graph.educationAssignmentPointsGradeType",
                "maxPoints": 2
            }
        },
        {
            "levelId": "b1d9ac8f-fb57-4172-9863-4a4994bc31fa",
            "displayName": "Poor",
            "description": {
                "content": "",
                "contentType": "text"
            },
            "grading": {
                "@odata.type": "#microsoft.graph.educationAssignmentPointsGradeType",
                "maxPoints": 1
            }
        }
    ],
    "grading": {
        "@odata.type": "#microsoft.graph.educationAssignmentPointsGradeType",
        "maxPoints": 100
    },
    "createdBy": {
        "application": null,
        "device": null,
        "user": {
            "id": "fffafb29-e8bc-4de3-8106-be76ed2ad499",
            "displayName": null
        }
    },
    "lastModifiedBy": {
        "application": null,
        "device": null,
        "user": {
            "id": "fffafb29-e8bc-4de3-8106-be76ed2ad499",
            "displayName": null
        }
    }
}