Create defaultManagedAppConfiguration

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

Prerequisites

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

DeviceManagementApps.ReadWrite.All

HTTP Request

POST /managedAppPolicies/
POST /managedAppRegistrations/{managedAppRegistrationsId}/appliedPolicies/
POST /managedAppRegistrations/{managedAppRegistrationsId}/intendedPolicies/

Request headers

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

Request body

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

Property Type Description
displayName String Policy display name. Inherited from managedAppPolicy
description String The policy's description. Inherited from managedAppPolicy
lastModifiedTime DateTimeOffset Last time the policy was modified. Inherited from managedAppPolicy
deployedAppCount Int32 Count of apps to which the current policy is deployed. Inherited from managedAppPolicy
id String Key of the entity. Inherited from managedAppPolicy
version String Version of the entity. Inherited from managedAppPolicy
customSettings keyValuePair collection A set of string key and string value pairs to be sent to apps for users to whom the configuration is scoped, unalterned by this service Inherited from managedAppConfiguration

Response

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

Example

Request

Here is an example of the request.

POST https://graph.microsoft.com/beta/managedAppPolicies/
Content-type: application/json
Content-length: 424

{
  "@odata.type": "#microsoft.graph.defaultManagedAppConfiguration",
  "displayName": "Display Name value",
  "description": "Description value",
  "lastModifiedTime": "2017-01-01T00:03:18.5958204-08:00",
  "deployedAppCount": 0,
  "version": "Version value",
  "customSettings": [
    {
      "@odata.type": "microsoft.graph.keyValuePair",
      "name": "Name value",
      "value": "Value 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: 473

{
  "@odata.type": "#microsoft.graph.defaultManagedAppConfiguration",
  "displayName": "Display Name value",
  "description": "Description value",
  "lastModifiedTime": "2017-01-01T00:03:18.5958204-08:00",
  "deployedAppCount": 0,
  "id": "6f83d45c-d45c-6f83-5cd4-836f5cd4836f",
  "version": "Version value",
  "customSettings": [
    {
      "@odata.type": "microsoft.graph.keyValuePair",
      "name": "Name value",
      "value": "Value value"
    }
  ]
}