Create iosManagedAppRegistration

Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.

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

Create a new iosManagedAppRegistration object.

Prerequisites

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

DeviceManagementApps.ReadWrite.All

HTTP Request

POST /deviceAppManagement/managedAppRegistrations

Request headers

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

Request body

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

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 201 Created response code and a iosManagedAppRegistration object in the response body.

Example

Request

Here is an example of the request.

POST https://graph.microsoft.com/beta/deviceAppManagement/managedAppRegistrations
Content-type: application/json
Content-length: 635

{
  "@odata.type": "#microsoft.graph.iosManagedAppRegistration",
  "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.iosMobileAppIdentifier",
    "bundleId": "Bundle 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 201 Created
Content-Type: application/json
Content-Length: 743

{
  "@odata.type": "#microsoft.graph.iosManagedAppRegistration",
  "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.iosMobileAppIdentifier",
    "bundleId": "Bundle Id value"
  },
  "id": "47632c19-2c19-4763-192c-6347192c6347",
  "version": "Version value"
}