Update targetedManagedAppConfiguration

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

Prerequisites

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

DeviceManagementApps.ReadWrite.All

HTTP Request

PATCH /managedAppPolicies/{managedAppPoliciesId}
PATCH /managedAppRegistrations/{managedAppRegistrationsId}/appliedPolicies/{managedAppPolicyId}
PATCH /managedAppRegistrations/{managedAppRegistrationsId}/intendedPolicies/{managedAppPolicyId}

Request headers

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

Request body

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

Property Type Description
displayName String Policy display name. Inherited from managedAppPolicy
description String The policy's description. Inherited from managedAppPolicy
createdDateTime DateTimeOffset The date and time the policy was created. Inherited from managedAppPolicy
lastModifiedDateTime DateTimeOffset Last time the policy was modified. Inherited from managedAppPolicy
lastModifiedTime DateTimeOffset DEPRECATED: 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
targetedSecurityGroupIds String collection List of security group IDs to which the configuration is deployed
targetedSecurityGroupsCount Int32 Number of groups to which the configuration is deployed.

Response

If successful, this method returns a 200 OK response code and an updated targetedManagedAppConfiguration object in the response body.

Example

Request

Here is an example of the request.

PATCH https://graph.microsoft.com/beta/managedAppPolicies/{managedAppPoliciesId}
Content-type: application/json
Content-length: 537

{
  "displayName": "Display Name value",
  "description": "Description value",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "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"
    }
  ],
  "targetedSecurityGroupIds": [
    "Targeted Security Group Ids value"
  ],
  "targetedSecurityGroupsCount": 11
}

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

{
  "@odata.type": "#microsoft.graph.targetedManagedAppConfiguration",
  "displayName": "Display Name value",
  "description": "Description value",
  "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "lastModifiedTime": "2017-01-01T00:03:18.5958204-08:00",
  "deployedAppCount": 0,
  "id": "2444e029-e029-2444-29e0-442429e04424",
  "version": "Version value",
  "customSettings": [
    {
      "@odata.type": "microsoft.graph.keyValuePair",
      "name": "Name value",
      "value": "Value value"
    }
  ],
  "targetedSecurityGroupIds": [
    "Targeted Security Group Ids value"
  ],
  "targetedSecurityGroupsCount": 11
}