Update windowsManagedAppRegistration
Namespace: microsoft.graph
Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Update the properties of a windowsManagedAppRegistration object.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | DeviceManagementConfiguration.ReadWrite.All, DeviceManagementApps.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | DeviceManagementConfiguration.ReadWrite.All, DeviceManagementApps.ReadWrite.All |
HTTP Request
PATCH /deviceAppManagement/managedAppRegistrations/{managedAppRegistrationId}
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Accept | application/json |
Request body
In the request body, supply a JSON representation for the windowsManagedAppRegistration object.
The following table shows the properties that are required when you create the windowsManagedAppRegistration.
Property | Type | Description |
---|---|---|
createdDateTime | DateTimeOffset | Date and time of creation Inherited from managedAppRegistration |
lastSyncDateTime | DateTimeOffset | Date and time of last the app synced with management service. Inherited from managedAppRegistration |
applicationVersion | String | App version Inherited from managedAppRegistration |
managementSdkVersion | String | App management SDK version Inherited from managedAppRegistration |
platformVersion | String | Operating System version Inherited from managedAppRegistration |
deviceType | String | Host device type Inherited from managedAppRegistration |
deviceTag | String | App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions. Inherited from managedAppRegistration |
deviceName | String | Host device name Inherited from managedAppRegistration |
managedDeviceId | String | The Managed Device identifier of the host device. Value could be empty even when the host device is managed. Inherited from managedAppRegistration |
azureADDeviceId | String | The Azure Active Directory Device identifier of the host device. Value could be empty even when the host device is Azure Active Directory registered. Inherited from managedAppRegistration |
deviceModel | String | The device model for the current app registration Inherited from managedAppRegistration |
deviceManufacturer | String | The device manufacturer for the current app registration Inherited from managedAppRegistration |
flaggedReasons | managedAppFlaggedReason collection | Zero or more reasons an app registration is flagged. E.g. app running on rooted device Inherited from managedAppRegistration. Possible values are: none , rootedDevice , androidBootloaderUnlocked , androidFactoryRomModified . |
userId | String | The user Id to who this app registration belongs. Inherited from managedAppRegistration |
appIdentifier | mobileAppIdentifier | The app package Identifier Inherited from managedAppRegistration |
id | String | Key of the entity. Inherited from managedAppRegistration |
version | String | Version of the entity. Inherited from managedAppRegistration |
Response
If successful, this method returns a 200 OK
response code and an updated windowsManagedAppRegistration object in the response body.
Example
Request
Here is an example of the request.
PATCH https://graph.microsoft.com/beta/deviceAppManagement/managedAppRegistrations/{managedAppRegistrationId}
Content-type: application/json
Content-length: 838
{
"@odata.type": "#microsoft.graph.windowsManagedAppRegistration",
"lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00",
"applicationVersion": "Application Version value",
"managementSdkVersion": "Management Sdk Version value",
"platformVersion": "Platform Version value",
"deviceType": "Device Type value",
"deviceTag": "Device Tag value",
"deviceName": "Device Name value",
"managedDeviceId": "Managed Device Id value",
"azureADDeviceId": "Azure ADDevice Id value",
"deviceModel": "Device Model value",
"deviceManufacturer": "Device Manufacturer value",
"flaggedReasons": [
"rootedDevice"
],
"userId": "User Id value",
"appIdentifier": {
"@odata.type": "microsoft.graph.windowsAppIdentifier",
"windowsAppId": "Windows App Id value"
},
"version": "Version value"
}
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: 946
{
"@odata.type": "#microsoft.graph.windowsManagedAppRegistration",
"createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
"lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00",
"applicationVersion": "Application Version value",
"managementSdkVersion": "Management Sdk Version value",
"platformVersion": "Platform Version value",
"deviceType": "Device Type value",
"deviceTag": "Device Tag value",
"deviceName": "Device Name value",
"managedDeviceId": "Managed Device Id value",
"azureADDeviceId": "Azure ADDevice Id value",
"deviceModel": "Device Model value",
"deviceManufacturer": "Device Manufacturer value",
"flaggedReasons": [
"rootedDevice"
],
"userId": "User Id value",
"appIdentifier": {
"@odata.type": "microsoft.graph.windowsAppIdentifier",
"windowsAppId": "Windows App Id value"
},
"id": "fc3a5f7f-5f7f-fc3a-7f5f-3afc7f5f3afc",
"version": "Version value"
}