educationSchool を作成する

名前空間: microsoft.graph

新しい educationSchool オブジェクトを作成 します。

アクセス許可

この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。

アクセス許可の種類 アクセス許可 (特権の小さいものから大きいものへ)
委任 (職場または学校のアカウント) サポートされていません。
委任 (個人用 Microsoft アカウント) サポートされていません。
アプリケーション EduRoster.ReadWrite.All

HTTP 要求

POST /education/schools

要求ヘッダー

名前 説明
Authorization ベアラー {token}。必須。
Content-Type application/json. Required.

要求本文

要求本文で 、educationSchool オブジェクトの JSON 表記を指定します。

次の表に、educationSchool を作成するときに必要な プロパティを示します

プロパティ 説明
displayName String 学校の表示名。 教育から継承 Organization.
description String 学校の説明。 教育から継承 Organization.
externalSource educationExternalSource この組織が作成されたソース。 教育から継承 Organization. 指定できる値は sis 、'manual です。
externalSourceDetail String このリソースが生成された外部ソースの名前。
principalEmail String プリンシパルの電子メール アドレス。
principalName String プリンシパルの名前。
externalPrincipalId String 同期システム内のプリンシパルの ID。
highestGrade String 授業を受けている最高学年。
lowestGrade String 授業を受けている最低学年。
schoolNumber String 学校番号。
externalId String 同期システム内の学校の ID。
phone String 学校の電話番号。
fax String 学校の FAX 番号。
createdBy identitySet 学校を作成したエンティティ。
address physicalAddress 学校の住所。

応答

成功した場合、このメソッドは 201 Created 応答コードと、応答本文で educationSchool オブジェクトを返します。

要求

POST https://graph.microsoft.com/v1.0/education/schools
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.educationSchool",
  "displayName": "String",
  "description": "String",
  "externalSource": "String",
  "externalSourceDetail": "String",
  "principalEmail": "String",
  "principalName": "String",
  "externalPrincipalId": "String",
  "lowestGrade": "String",
  "highestGrade": "String",
  "schoolNumber": "String",
  "externalId": "String",
  "phone": "String",
  "fax": "String",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "address": {
    "@odata.type": "microsoft.graph.physicalAddress"
  }
}

応答

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

HTTP/1.1 201 Created
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.educationSchool",
  "id": "1c23c12e-c12e-1c23-2ec1-231c2ec1231c",
  "displayName": "String",
  "description": "String",
  "externalSource": "String",
  "externalSourceDetail": "String",
  "principalEmail": "String",
  "principalName": "String",
  "externalPrincipalId": "String",
  "lowestGrade": "String",
  "highestGrade": "String",
  "schoolNumber": "String",
  "externalId": "String",
  "phone": "String",
  "fax": "String",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "address": {
    "@odata.type": "microsoft.graph.physicalAddress"
  }
}