Update deviceAppManagement

Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Update the properties of a deviceAppManagement object.

Prerequisites

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions. Note that the appropriate permission varies according to the workflow.

Permission type Permissions (from most to least privileged)
Delegated (work or school account) DeviceManagementApps.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP Request

PATCH /deviceAppManagement

Request headers

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

Request body

In the request body, supply a JSON representation for the deviceAppManagement object.

The following table shows the properties that are required when you create the deviceAppManagement.

Property Type Description
id String Key of the entity.
Onboarding
isEnabledForMicrosoftStoreForBusiness Boolean Whether the account is enabled for syncing applications from the Microsoft Store for Business.
microsoftStoreForBusinessLanguage String The locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is -<country/regioncode2>, where is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture.
microsoftStoreForBusinessLastCompletedApplicationSyncTime DateTimeOffset The last time an application sync from the Microsoft Store for Business was completed.
microsoftStoreForBusinessLastSuccessfulSyncDateTime DateTimeOffset The last time the apps from the Microsoft Store for Business were synced successfully for the account.

Response

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

Example request

PATCH https://graph.microsoft.com/v1.0/deviceAppManagement
Content-type: application/json
Content-length: 2

{}

Example response

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: 110

{
  "@odata.type": "#microsoft.graph.deviceAppManagement",
  "id": "bbb801a3-01a3-bbb8-a301-b8bba301b8bb"
}