Create mobileApp

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 mobileApp by posting to the mobileApps collection.

Prerequisites

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

DeviceManagementApps.ReadWrite.All

HTTP Request

POST /deviceAppManagement/mobileApps/

Request headers

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

Request body

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

Property Type Description
id String Key of the entity.
displayName String The admin provided or imported title of the app.
description String The description of the app.
publisher String The publisher of the app.
largeIcon mimeContent The large icon, to be displayed in the app details and used for upload of the icon.
createdDateTime DateTimeOffset The date and time the app was created.
lastModifiedDateTime DateTimeOffset The date and time the app was last modified.
isFeatured Boolean The value indicating whether the app is marked as featured by the admin.
privacyInformationUrl String The privacy statement Url.
informationUrl String The more information Url.
owner String The owner of the app.
developer String The developer of the app.
notes String Notes for the app.
uploadState Int32 The upload state.
installSummary mobileAppInstallSummary Mobile App Install Summary.

Response

If successful, this method returns a 201 Created response code and a mobileApp object in the response body.

Example

Request

Here is an example of the request.

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

{
  "@odata.type": "#microsoft.graph.mobileApp",
  "displayName": "Display Name value",
  "description": "Description value",
  "publisher": "Publisher value",
  "largeIcon": {
    "@odata.type": "microsoft.graph.mimeContent",
    "type": "Type value",
    "value": "dmFsdWU="
  },
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "isFeatured": true,
  "privacyInformationUrl": "https://example.com/privacyInformationUrl/",
  "informationUrl": "https://example.com/informationUrl/",
  "owner": "Owner value",
  "developer": "Developer value",
  "notes": "Notes value",
  "uploadState": 11,
  "installSummary": {
    "@odata.type": "microsoft.graph.mobileAppInstallSummary",
    "installedDeviceCount": 4,
    "failedDeviceCount": 1,
    "notInstalledDeviceCount": 7,
    "installedUserCount": 2,
    "failedUserCount": 15,
    "notInstalledUserCount": 5
  }
}

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

{
  "@odata.type": "#microsoft.graph.mobileApp",
  "id": "0177548a-548a-0177-8a54-77018a547701",
  "displayName": "Display Name value",
  "description": "Description value",
  "publisher": "Publisher value",
  "largeIcon": {
    "@odata.type": "microsoft.graph.mimeContent",
    "type": "Type value",
    "value": "dmFsdWU="
  },
  "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "isFeatured": true,
  "privacyInformationUrl": "https://example.com/privacyInformationUrl/",
  "informationUrl": "https://example.com/informationUrl/",
  "owner": "Owner value",
  "developer": "Developer value",
  "notes": "Notes value",
  "uploadState": 11,
  "installSummary": {
    "@odata.type": "microsoft.graph.mobileAppInstallSummary",
    "installedDeviceCount": 4,
    "failedDeviceCount": 1,
    "notInstalledDeviceCount": 7,
    "installedUserCount": 2,
    "failedUserCount": 15,
    "notInstalledUserCount": 5
  }
}