Update androidManagedAppRegistration

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 androidManagedAppRegistration object.

Prerequisites

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

DeviceManagementApps.ReadWrite.All

HTTP Request

PATCH /managedAppRegistrations/{managedAppRegistrationsId}
PATCH /users/{usersId}/managedAppRegistrations/{managedAppRegistrationId}

Request headers

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

Request body

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

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
flaggedReasons String 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.
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 androidManagedAppRegistration object in the response body.

Example

Request

Here is an example of the request.

PATCH https://graph.microsoft.com/beta/managedAppRegistrations/{managedAppRegistrationsId}
Content-type: application/json
Content-length: 532

{
  "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",
  "flaggedReasons": [
    "rootedDevice"
  ],
  "userId": "User Id value",
  "appIdentifier": {
    "@odata.type": "microsoft.graph.mobileAppIdentifier"
  },
  "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: 708

{
  "@odata.type": "#microsoft.graph.androidManagedAppRegistration",
  "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",
  "flaggedReasons": [
    "rootedDevice"
  ],
  "userId": "User Id value",
  "appIdentifier": {
    "@odata.type": "microsoft.graph.mobileAppIdentifier"
  },
  "id": "0e064997-4997-0e06-9749-060e9749060e",
  "version": "Version value"
}