Namespace: microsoft.graph
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Update the properties of a managedAppPolicyDeploymentSummary object.
This API is available in the following national cloud deployments.
Global service |
US Government L4 |
US Government L5 (DOD) |
China operated by 21Vianet |
✅ |
✅ |
✅ |
✅ |
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type |
Permissions (from least to most privileged) |
Delegated (work or school account) |
DeviceManagementApps.ReadWrite.All |
Delegated (personal Microsoft account) |
Not supported. |
Application |
DeviceManagementApps.ReadWrite.All |
HTTP Request
PATCH /deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtectionId}/deploymentSummary
PATCH /deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtectionId}/deploymentSummary
PATCH /deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtectionId}/deploymentSummary
PATCH /deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfigurationId}/deploymentSummary
Request body
In the request body, supply a JSON representation for the managedAppPolicyDeploymentSummary object.
The following table shows the properties that are required when you create the managedAppPolicyDeploymentSummary.
Property |
Type |
Description |
displayName |
String |
Not yet documented |
configurationDeployedUserCount |
Int32 |
Not yet documented |
lastRefreshTime |
DateTimeOffset |
Not yet documented |
configurationDeploymentSummaryPerApp |
managedAppPolicyDeploymentSummaryPerApp collection |
Not yet documented |
id |
String |
Key of the entity. |
version |
String |
Version of the entity. |
Response
If successful, this method returns a 200 OK
response code and an updated managedAppPolicyDeploymentSummary object in the response body.
Example
Request
Here is an example of the request.
PATCH https://graph.microsoft.com/v1.0/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtectionId}/deploymentSummary
Content-type: application/json
Content-length: 588
{
"@odata.type": "#microsoft.graph.managedAppPolicyDeploymentSummary",
"displayName": "Display Name value",
"configurationDeployedUserCount": 14,
"lastRefreshTime": "2017-01-01T00:01:30.1240368-08:00",
"configurationDeploymentSummaryPerApp": [
{
"@odata.type": "microsoft.graph.managedAppPolicyDeploymentSummaryPerApp",
"mobileAppIdentifier": {
"@odata.type": "microsoft.graph.androidMobileAppIdentifier",
"packageId": "Package Id value"
},
"configurationAppliedUserCount": 13
}
],
"version": "Version value"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new ManagedAppPolicyDeploymentSummary
{
OdataType = "#microsoft.graph.managedAppPolicyDeploymentSummary",
DisplayName = "Display Name value",
ConfigurationDeployedUserCount = 14,
LastRefreshTime = DateTimeOffset.Parse("2017-01-01T00:01:30.1240368-08:00"),
ConfigurationDeploymentSummaryPerApp = new List<ManagedAppPolicyDeploymentSummaryPerApp>
{
new ManagedAppPolicyDeploymentSummaryPerApp
{
OdataType = "microsoft.graph.managedAppPolicyDeploymentSummaryPerApp",
MobileAppIdentifier = new AndroidMobileAppIdentifier
{
OdataType = "microsoft.graph.androidMobileAppIdentifier",
PackageId = "Package Id value",
},
ConfigurationAppliedUserCount = 13,
},
},
Version = "Version value",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceAppManagement.IosManagedAppProtections["{iosManagedAppProtection-id}"].DeploymentSummary.PatchAsync(requestBody);
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation.
mgc device-app-management ios-managed-app-protections deployment-summary patch --ios-managed-app-protection-id {iosManagedAppProtection-id} --body '{\
"@odata.type": "#microsoft.graph.managedAppPolicyDeploymentSummary",\
"displayName": "Display Name value",\
"configurationDeployedUserCount": 14,\
"lastRefreshTime": "2017-01-01T00:01:30.1240368-08:00",\
"configurationDeploymentSummaryPerApp": [\
{\
"@odata.type": "microsoft.graph.managedAppPolicyDeploymentSummaryPerApp",\
"mobileAppIdentifier": {\
"@odata.type": "microsoft.graph.androidMobileAppIdentifier",\
"packageId": "Package Id value"\
},\
"configurationAppliedUserCount": 13\
}\
],\
"version": "Version value"\
}\
'
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation.
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
"time"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphmodels "github.com/microsoftgraph/msgraph-sdk-go/models"
//other-imports
)
requestBody := graphmodels.NewManagedAppPolicyDeploymentSummary()
displayName := "Display Name value"
requestBody.SetDisplayName(&displayName)
configurationDeployedUserCount := int32(14)
requestBody.SetConfigurationDeployedUserCount(&configurationDeployedUserCount)
lastRefreshTime , err := time.Parse(time.RFC3339, "2017-01-01T00:01:30.1240368-08:00")
requestBody.SetLastRefreshTime(&lastRefreshTime)
managedAppPolicyDeploymentSummaryPerApp := graphmodels.NewManagedAppPolicyDeploymentSummaryPerApp()
mobileAppIdentifier := graphmodels.NewAndroidMobileAppIdentifier()
packageId := "Package Id value"
mobileAppIdentifier.SetPackageId(&packageId)
managedAppPolicyDeploymentSummaryPerApp.SetMobileAppIdentifier(mobileAppIdentifier)
configurationAppliedUserCount := int32(13)
managedAppPolicyDeploymentSummaryPerApp.SetConfigurationAppliedUserCount(&configurationAppliedUserCount)
configurationDeploymentSummaryPerApp := []graphmodels.ManagedAppPolicyDeploymentSummaryPerAppable {
managedAppPolicyDeploymentSummaryPerApp,
}
requestBody.SetConfigurationDeploymentSummaryPerApp(configurationDeploymentSummaryPerApp)
version := "Version value"
requestBody.SetVersion(&version)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
deploymentSummary, err := graphClient.DeviceAppManagement().IosManagedAppProtections().ByIosManagedAppProtectionId("iosManagedAppProtection-id").DeploymentSummary().Patch(context.Background(), requestBody, nil)
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation.
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
ManagedAppPolicyDeploymentSummary managedAppPolicyDeploymentSummary = new ManagedAppPolicyDeploymentSummary();
managedAppPolicyDeploymentSummary.setOdataType("#microsoft.graph.managedAppPolicyDeploymentSummary");
managedAppPolicyDeploymentSummary.setDisplayName("Display Name value");
managedAppPolicyDeploymentSummary.setConfigurationDeployedUserCount(14);
OffsetDateTime lastRefreshTime = OffsetDateTime.parse("2017-01-01T00:01:30.1240368-08:00");
managedAppPolicyDeploymentSummary.setLastRefreshTime(lastRefreshTime);
LinkedList<ManagedAppPolicyDeploymentSummaryPerApp> configurationDeploymentSummaryPerApp = new LinkedList<ManagedAppPolicyDeploymentSummaryPerApp>();
ManagedAppPolicyDeploymentSummaryPerApp managedAppPolicyDeploymentSummaryPerApp = new ManagedAppPolicyDeploymentSummaryPerApp();
managedAppPolicyDeploymentSummaryPerApp.setOdataType("microsoft.graph.managedAppPolicyDeploymentSummaryPerApp");
AndroidMobileAppIdentifier mobileAppIdentifier = new AndroidMobileAppIdentifier();
mobileAppIdentifier.setOdataType("microsoft.graph.androidMobileAppIdentifier");
mobileAppIdentifier.setPackageId("Package Id value");
managedAppPolicyDeploymentSummaryPerApp.setMobileAppIdentifier(mobileAppIdentifier);
managedAppPolicyDeploymentSummaryPerApp.setConfigurationAppliedUserCount(13);
configurationDeploymentSummaryPerApp.add(managedAppPolicyDeploymentSummaryPerApp);
managedAppPolicyDeploymentSummary.setConfigurationDeploymentSummaryPerApp(configurationDeploymentSummaryPerApp);
managedAppPolicyDeploymentSummary.setVersion("Version value");
ManagedAppPolicyDeploymentSummary result = graphClient.deviceAppManagement().iosManagedAppProtections().byIosManagedAppProtectionId("{iosManagedAppProtection-id}").deploymentSummary().patch(managedAppPolicyDeploymentSummary);
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation.
const options = {
authProvider,
};
const client = Client.init(options);
const managedAppPolicyDeploymentSummary = {
'@odata.type': '#microsoft.graph.managedAppPolicyDeploymentSummary',
displayName: 'Display Name value',
configurationDeployedUserCount: 14,
lastRefreshTime: '2017-01-01T00:01:30.1240368-08:00',
configurationDeploymentSummaryPerApp: [
{
'@odata.type': 'microsoft.graph.managedAppPolicyDeploymentSummaryPerApp',
mobileAppIdentifier: {
'@odata.type': 'microsoft.graph.androidMobileAppIdentifier',
packageId: 'Package Id value'
},
configurationAppliedUserCount: 13
}
],
version: 'Version value'
};
await client.api('/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtectionId}/deploymentSummary')
.update(managedAppPolicyDeploymentSummary);
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation.
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\ManagedAppPolicyDeploymentSummary;
use Microsoft\Graph\Generated\Models\ManagedAppPolicyDeploymentSummaryPerApp;
use Microsoft\Graph\Generated\Models\AndroidMobileAppIdentifier;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new ManagedAppPolicyDeploymentSummary();
$requestBody->setOdataType('#microsoft.graph.managedAppPolicyDeploymentSummary');
$requestBody->setDisplayName('Display Name value');
$requestBody->setConfigurationDeployedUserCount(14);
$requestBody->setLastRefreshTime(new \DateTime('2017-01-01T00:01:30.1240368-08:00'));
$configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1 = new ManagedAppPolicyDeploymentSummaryPerApp();
$configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1->setOdataType('microsoft.graph.managedAppPolicyDeploymentSummaryPerApp');
$configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1MobileAppIdentifier = new AndroidMobileAppIdentifier();
$configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1MobileAppIdentifier->setOdataType('microsoft.graph.androidMobileAppIdentifier');
$configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1MobileAppIdentifier->setPackageId('Package Id value');
$configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1->setMobileAppIdentifier($configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1MobileAppIdentifier);
$configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1->setConfigurationAppliedUserCount(13);
$configurationDeploymentSummaryPerAppArray []= $configurationDeploymentSummaryPerAppManagedAppPolicyDeploymentSummaryPerApp1;
$requestBody->setConfigurationDeploymentSummaryPerApp($configurationDeploymentSummaryPerAppArray);
$requestBody->setVersion('Version value');
$result = $graphServiceClient->deviceAppManagement()->iosManagedAppProtections()->byIosManagedAppProtectionId('iosManagedAppProtection-id')->deploymentSummary()->patch($requestBody)->wait();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation.
Import-Module Microsoft.Graph.Devices.CorporateManagement
$params = @{
"@odata.type" = "#microsoft.graph.managedAppPolicyDeploymentSummary"
displayName = "Display Name value"
configurationDeployedUserCount = 14
lastRefreshTime = [System.DateTime]::Parse("2017-01-01T00:01:30.1240368-08:00")
configurationDeploymentSummaryPerApp = @(
@{
"@odata.type" = "microsoft.graph.managedAppPolicyDeploymentSummaryPerApp"
mobileAppIdentifier = @{
"@odata.type" = "microsoft.graph.androidMobileAppIdentifier"
packageId = "Package Id value"
}
configurationAppliedUserCount = 13
}
)
version = "Version value"
}
Update-MgDeviceAppManagementiOSManagedAppProtectionDeploymentSummary -IosManagedAppProtectionId $iosManagedAppProtectionId -BodyParameter $params
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation.
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.managed_app_policy_deployment_summary import ManagedAppPolicyDeploymentSummary
from msgraph.generated.models.managed_app_policy_deployment_summary_per_app import ManagedAppPolicyDeploymentSummaryPerApp
from msgraph.generated.models.android_mobile_app_identifier import AndroidMobileAppIdentifier
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ManagedAppPolicyDeploymentSummary(
odata_type = "#microsoft.graph.managedAppPolicyDeploymentSummary",
display_name = "Display Name value",
configuration_deployed_user_count = 14,
last_refresh_time = "2017-01-01T00:01:30.1240368-08:00",
configuration_deployment_summary_per_app = [
ManagedAppPolicyDeploymentSummaryPerApp(
odata_type = "microsoft.graph.managedAppPolicyDeploymentSummaryPerApp",
mobile_app_identifier = AndroidMobileAppIdentifier(
odata_type = "microsoft.graph.androidMobileAppIdentifier",
package_id = "Package Id value",
),
configuration_applied_user_count = 13,
),
],
version = "Version value",
)
result = await graph_client.device_app_management.ios_managed_app_protections.by_ios_managed_app_protection_id('iosManagedAppProtection-id').deployment_summary.patch(request_body)
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation.
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: 637
{
"@odata.type": "#microsoft.graph.managedAppPolicyDeploymentSummary",
"displayName": "Display Name value",
"configurationDeployedUserCount": 14,
"lastRefreshTime": "2017-01-01T00:01:30.1240368-08:00",
"configurationDeploymentSummaryPerApp": [
{
"@odata.type": "microsoft.graph.managedAppPolicyDeploymentSummaryPerApp",
"mobileAppIdentifier": {
"@odata.type": "microsoft.graph.androidMobileAppIdentifier",
"packageId": "Package Id value"
},
"configurationAppliedUserCount": 13
}
],
"id": "61f2f688-f688-61f2-88f6-f26188f6f261",
"version": "Version value"
}