Update windowsPhone81GeneralConfiguration

Note: Using the Microsoft Graph APIs to configure Intune controls and policies still requires that the Intune service is correctly licensed by the customer.

Update the properties of a windowsPhone81GeneralConfiguration object.

Prerequisites

One of the following scopes is required to execute this API:

DeviceManagementConfiguration.ReadWrite.All

HTTP Request

PATCH /deviceManagement/deviceConfigurations/{deviceConfigurationId}
PATCH /deviceConfigurationAssignments/{deviceConfigurationAssignmentsId}/deviceConfiguration/
PATCH /deviceManagement/deviceConfigurations/{deviceConfigurationId}/groupAssignments/{deviceConfigurationGroupAssignmentId}/deviceConfiguration/

Request headers

Header Value
Authorization Bearer <token> Required.
Accept application/json

Request body

In the request body, supply a JSON representation of a windowsPhone81GeneralConfiguration object. The following table shows the properties that are required when you create a windowsPhone81GeneralConfiguration.

Property Type Description
id String Key of the entity. Inherited from deviceConfiguration
lastModifiedDateTime DateTimeOffset DateTime the object was last modified. Inherited from deviceConfiguration
createdDateTime DateTimeOffset DateTime the object was created. Inherited from deviceConfiguration
description String Admin provided description of the Device Configuration. Inherited from deviceConfiguration
displayName String Admin provided name of the device configuration. Inherited from deviceConfiguration
version Int32 Version of the device configuration. Inherited from deviceConfiguration
applyToWindows10Mobile Boolean Indicates whether or not to apply this configuration to Windows 10 mobile.
applyOnlyToWindowsPhone81 Boolean Value indicating whether this policy only applies to Windows Phone 8.1.
appsBlockCopyPaste Boolean Indicates whether or not to block copy paste.
bluetoothBlocked Boolean Indicates whether or not to block bluetooth.
cameraBlocked Boolean Indicates whether or not to block camera.
cellularBlockWifiTethering Boolean Indicates whether or not to block Wi-Fi tethering. Has no impact if Wi-Fi is blocked.
compliantAppsList appListItem collection List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType).
compliantAppListType String List that is in the AppComplianceList. Possible values are: none, appsInListCompliant, appsNotInListCompliant.
diagnosticDataBlockSubmission Boolean Indicates whether or not to block diagnostic data submission.
emailBlockAddingAccounts Boolean Indicates whether or not to block custom email accounts.
locationServicesBlocked Boolean Indicates whether or not to block location services.
microsoftAccountBlocked Boolean Indicates whether or not to block using a Microsoft Account.
nfcBlocked Boolean Indicates whether or not to block Near-Field Communication.
passwordBlockSimple Boolean Indicates whether or not to block syncing the calendar.
passwordExpirationDays Int32 Number of days before the password expires.
passwordMinimumLength Int32 Minimum length of passwords.
passwordMinutesOfInactivityBeforeScreenTimeout Int32 Minutes of inactivity before screen timeout.
passwordMinimumCharacterSetCount Int32 Number of character sets a password must contain.
passwordPreviousPasswordBlockCount Int32 Number of previous passwords to block.
passwordSignInFailureCountBeforeFactoryReset Int32 Number of sign in failures allowed before factory reset.
passwordRequiredType String Password type that is required. Possible values are: deviceDefault, alphanumeric, numeric.
passwordRequired Boolean Indicates whether or not to require a password.
screenCaptureBlocked Boolean Indicates whether or not to block screenshots.
storageBlockRemovableStorage Boolean Indicates whether or not to block removable storage.
storageRequireEncryption Boolean Indicates whether or not to require encryption.
webBrowserBlocked Boolean Indicates whether or not to block the web browser.
wifiBlocked Boolean Indicates whether or not to block Wi-Fi.
wifiBlockAutomaticConnectHotspots Boolean Indicates whether or not to block automatically connecting to Wi-Fi hotspots. Has no impact if Wi-Fi is blocked.
wifiBlockHotspotReporting Boolean Indicates whether or not to block Wi-Fi hotspot reporting. Has no impact if Wi-Fi is blocked.
windowsStoreBlocked Boolean Indicates whether or not to block the Windows Store.

Response

If successful, this method returns a 200 OK response code and an updated windowsPhone81GeneralConfiguration object in the response body.

Example

Request

Here is an example of the request.

PATCH https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations/{deviceConfigurationId}
Content-type: application/json
Content-length: 1487

{
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "description": "Description value",
  "displayName": "Display Name value",
  "version": 7,
  "applyToWindows10Mobile": true,
  "applyOnlyToWindowsPhone81": true,
  "appsBlockCopyPaste": true,
  "bluetoothBlocked": true,
  "cameraBlocked": true,
  "cellularBlockWifiTethering": true,
  "compliantAppsList": [
    {
      "@odata.type": "microsoft.graph.appListItem",
      "name": "Name value",
      "publisher": "Publisher value",
      "appStoreUrl": "https://example.com/appStoreUrl/",
      "appId": "App Id value"
    }
  ],
  "compliantAppListType": "appsInListCompliant",
  "diagnosticDataBlockSubmission": true,
  "emailBlockAddingAccounts": true,
  "locationServicesBlocked": true,
  "microsoftAccountBlocked": true,
  "nfcBlocked": true,
  "passwordBlockSimple": true,
  "passwordExpirationDays": 6,
  "passwordMinimumLength": 5,
  "passwordMinutesOfInactivityBeforeScreenTimeout": 14,
  "passwordMinimumCharacterSetCount": 0,
  "passwordPreviousPasswordBlockCount": 2,
  "passwordSignInFailureCountBeforeFactoryReset": 12,
  "passwordRequiredType": "alphanumeric",
  "passwordRequired": true,
  "screenCaptureBlocked": true,
  "storageBlockRemovableStorage": true,
  "storageRequireEncryption": true,
  "webBrowserBlocked": true,
  "wifiBlocked": true,
  "wifiBlockAutomaticConnectHotspots": true,
  "wifiBlockHotspotReporting": true,
  "windowsStoreBlocked": true
}

Response

Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1668

{
  "@odata.type": "#microsoft.graph.windowsPhone81GeneralConfiguration",
  "id": "f5e0e34d-e34d-f5e0-4de3-e0f54de3e0f5",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
  "description": "Description value",
  "displayName": "Display Name value",
  "version": 7,
  "applyToWindows10Mobile": true,
  "applyOnlyToWindowsPhone81": true,
  "appsBlockCopyPaste": true,
  "bluetoothBlocked": true,
  "cameraBlocked": true,
  "cellularBlockWifiTethering": true,
  "compliantAppsList": [
    {
      "@odata.type": "microsoft.graph.appListItem",
      "name": "Name value",
      "publisher": "Publisher value",
      "appStoreUrl": "https://example.com/appStoreUrl/",
      "appId": "App Id value"
    }
  ],
  "compliantAppListType": "appsInListCompliant",
  "diagnosticDataBlockSubmission": true,
  "emailBlockAddingAccounts": true,
  "locationServicesBlocked": true,
  "microsoftAccountBlocked": true,
  "nfcBlocked": true,
  "passwordBlockSimple": true,
  "passwordExpirationDays": 6,
  "passwordMinimumLength": 5,
  "passwordMinutesOfInactivityBeforeScreenTimeout": 14,
  "passwordMinimumCharacterSetCount": 0,
  "passwordPreviousPasswordBlockCount": 2,
  "passwordSignInFailureCountBeforeFactoryReset": 12,
  "passwordRequiredType": "alphanumeric",
  "passwordRequired": true,
  "screenCaptureBlocked": true,
  "storageBlockRemovableStorage": true,
  "storageRequireEncryption": true,
  "webBrowserBlocked": true,
  "wifiBlocked": true,
  "wifiBlockAutomaticConnectHotspots": true,
  "wifiBlockHotspotReporting": true,
  "windowsStoreBlocked": true
}