deviceManagementSettingDefinition の更新
名前空間: microsoft.graph
重要: Microsoft Graph /beta バージョンの API は変更される場合があります。実稼働での使用はサポートされていません。
注: Intune 用 Microsoft Graph API には、テナントの 有効な Intune ライセンスが必要です。
deviceManagementSettingDefinition オブジェクトのプロパティを更新します。
前提条件
この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。
| アクセス許可の種類 | アクセス許可 (特権の小さいものから大きいものへ) |
|---|---|
| 委任 (職場または学校アカウント) | DeviceManagementConfiguration.ReadWrite.All |
| 委任 (個人用 Microsoft アカウント) | サポートされていません。 |
| アプリケーション | DeviceManagementConfiguration.ReadWrite.All |
HTTP 要求
PATCH /deviceManagement/settingDefinitions/{deviceManagementSettingDefinitionId}
PATCH /deviceManagement/categories/{deviceManagementSettingCategoryId}/settingDefinitions/{deviceManagementSettingDefinitionId}
PATCH /deviceManagement/intents/{deviceManagementIntentId}/categories/{deviceManagementIntentSettingCategoryId}/settingDefinitions/{deviceManagementSettingDefinitionId}
PATCH /deviceManagement/templates/{deviceManagementTemplateId}/categories/{deviceManagementTemplateSettingCategoryId}/settingDefinitions/{deviceManagementSettingDefinitionId}
要求ヘッダー
| ヘッダー | 値 |
|---|---|
| Authorization | ベアラー <トークン> が必要です。 |
| 承諾 | application/json |
要求本文
要求本文で 、deviceManagementSettingDefinition オブジェクトの JSON 表記を指定します。
次の表に 、deviceManagementSettingDefinitionを作成するときに必要なプロパティを示します。
| プロパティ | 型 | 説明 |
|---|---|---|
| id | String | 設定定義の ID |
| valueType | deviceManangementIntentValueType | 値のデータ型。 使用可能な値: integer、boolean、string、complex、collection、abstractComplex。 |
| displayName | String | 設定の表示名 |
| isTopLevel | ブール値 | 設定がトップ レベルの場合は、コレクションまたは複雑な設定にラップする必要なく構成できます。 |
| description | String | 設定の説明 |
| placeholderText | String | 有効な入力の例としてのプレースホルダー テキスト |
| documentationUrl | String | 設定ドキュメントの URL |
| headerTitle | String | 設定ヘッダーのタイトルは、設定/設定のカテゴリ/セクションを表します |
| headerSubtitle | String | カテゴリ/セクションの詳細については、設定ヘッダーのサブタイトル |
| keywords | String collection | 設定に関連付けられたキーワード |
| 制約 | deviceManagementConstraint コレクション | 設定値の制約のコレクション |
| 依存関係 | deviceManagementSettingDependency コレクション | 他の設定に対する依存関係のコレクション |
応答
成功した場合、このメソッドは応答コードと、応答本文で 200 OK 更新された deviceManagementSettingDefinition オブジェクトを返します。
例
要求
以下は、要求の例です。
PATCH https://graph.microsoft.com/beta/deviceManagement/settingDefinitions/{deviceManagementSettingDefinitionId}
Content-type: application/json
Content-length: 1014
{
"@odata.type": "#microsoft.graph.deviceManagementSettingDefinition",
"valueType": "boolean",
"displayName": "Display Name value",
"isTopLevel": true,
"description": "Description value",
"placeholderText": "Placeholder Text value",
"documentationUrl": "https://example.com/documentationUrl/",
"headerTitle": "Header Title value",
"headerSubtitle": "Header Subtitle value",
"keywords": [
"Keywords value"
],
"constraints": [
{
"@odata.type": "microsoft.graph.deviceManagementSettingAppConstraint",
"supportedTypes": [
"Supported Types value"
]
}
],
"dependencies": [
{
"@odata.type": "microsoft.graph.deviceManagementSettingDependency",
"definitionId": "Definition Id value",
"constraints": [
{
"@odata.type": "microsoft.graph.deviceManagementSettingAppConstraint",
"supportedTypes": [
"Supported Types value"
]
}
]
}
]
}
応答
以下は、応答の例です。注:簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。すべてのプロパティは実際の呼び出しから返されます。
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1063
{
"@odata.type": "#microsoft.graph.deviceManagementSettingDefinition",
"id": "4ec3093d-093d-4ec3-3d09-c34e3d09c34e",
"valueType": "boolean",
"displayName": "Display Name value",
"isTopLevel": true,
"description": "Description value",
"placeholderText": "Placeholder Text value",
"documentationUrl": "https://example.com/documentationUrl/",
"headerTitle": "Header Title value",
"headerSubtitle": "Header Subtitle value",
"keywords": [
"Keywords value"
],
"constraints": [
{
"@odata.type": "microsoft.graph.deviceManagementSettingAppConstraint",
"supportedTypes": [
"Supported Types value"
]
}
],
"dependencies": [
{
"@odata.type": "microsoft.graph.deviceManagementSettingDependency",
"definitionId": "Definition Id value",
"constraints": [
{
"@odata.type": "microsoft.graph.deviceManagementSettingAppConstraint",
"supportedTypes": [
"Supported Types value"
]
}
]
}
]
}
フィードバック
フィードバックの送信と表示