Update managedDeviceMobileAppConfigurationDeviceSummary
Article
11/30/2023
11 contributors
Feedback
In this article
Namespace: microsoft.graph
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Update the properties of a managedDeviceMobileAppConfigurationDeviceSummary 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/mobileAppConfigurations/{managedDeviceMobileAppConfigurationId}/deviceStatusSummary
Request body
In the request body, supply a JSON representation for the managedDeviceMobileAppConfigurationDeviceSummary object.
The following table shows the properties that are required when you create the managedDeviceMobileAppConfigurationDeviceSummary .
Property
Type
Description
id
String
Key of the entity.
pendingCount
Int32
Number of pending devices
notApplicableCount
Int32
Number of not applicable devices
successCount
Int32
Number of succeeded devices
errorCount
Int32
Number of error devices
failedCount
Int32
Number of failed devices
lastUpdateDateTime
DateTimeOffset
Last update time
configurationVersion
Int32
Version of the policy for that overview
Response
If successful, this method returns a 200 OK
response code and an updated managedDeviceMobileAppConfigurationDeviceSummary object in the response body.
Example
Request
Here is an example of the request.
PATCH https://graph.microsoft.com/v1.0/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfigurationId}/deviceStatusSummary
Content-type: application/json
Content-length: 299
{
"@odata.type": "#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary",
"pendingCount": 12,
"notApplicableCount": 2,
"successCount": 12,
"errorCount": 10,
"failedCount": 11,
"lastUpdateDateTime": "2016-12-31T23:58:21.6459442-08:00",
"configurationVersion": 4
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new ManagedDeviceMobileAppConfigurationDeviceSummary
{
OdataType = "#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary",
PendingCount = 12,
NotApplicableCount = 2,
SuccessCount = 12,
ErrorCount = 10,
FailedCount = 11,
LastUpdateDateTime = DateTimeOffset.Parse("2016-12-31T23:58:21.6459442-08:00"),
ConfigurationVersion = 4,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceAppManagement.MobileAppConfigurations["{managedDeviceMobileAppConfiguration-id}"].DeviceStatusSummary.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 mobile-app-configurations device-status-summary patch --managed-device-mobile-app-configuration-id {managedDeviceMobileAppConfiguration-id} --body '{\
"@odata.type": "#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary",\
"pendingCount": 12,\
"notApplicableCount": 2,\
"successCount": 12,\
"errorCount": 10,\
"failedCount": 11,\
"lastUpdateDateTime": "2016-12-31T23:58:21.6459442-08:00",\
"configurationVersion": 4\
}\
'
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.NewManagedDeviceMobileAppConfigurationDeviceSummary()
pendingCount := int32(12)
requestBody.SetPendingCount(&pendingCount)
notApplicableCount := int32(2)
requestBody.SetNotApplicableCount(¬ApplicableCount)
successCount := int32(12)
requestBody.SetSuccessCount(&successCount)
errorCount := int32(10)
requestBody.SetErrorCount(&errorCount)
failedCount := int32(11)
requestBody.SetFailedCount(&failedCount)
lastUpdateDateTime , err := time.Parse(time.RFC3339, "2016-12-31T23:58:21.6459442-08:00")
requestBody.SetLastUpdateDateTime(&lastUpdateDateTime)
configurationVersion := int32(4)
requestBody.SetConfigurationVersion(&configurationVersion)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
deviceStatusSummary, err := graphClient.DeviceAppManagement().MobileAppConfigurations().ByManagedDeviceMobileAppConfigurationId("managedDeviceMobileAppConfiguration-id").DeviceStatusSummary().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);
ManagedDeviceMobileAppConfigurationDeviceSummary managedDeviceMobileAppConfigurationDeviceSummary = new ManagedDeviceMobileAppConfigurationDeviceSummary();
managedDeviceMobileAppConfigurationDeviceSummary.setOdataType("#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary");
managedDeviceMobileAppConfigurationDeviceSummary.setPendingCount(12);
managedDeviceMobileAppConfigurationDeviceSummary.setNotApplicableCount(2);
managedDeviceMobileAppConfigurationDeviceSummary.setSuccessCount(12);
managedDeviceMobileAppConfigurationDeviceSummary.setErrorCount(10);
managedDeviceMobileAppConfigurationDeviceSummary.setFailedCount(11);
OffsetDateTime lastUpdateDateTime = OffsetDateTime.parse("2016-12-31T23:58:21.6459442-08:00");
managedDeviceMobileAppConfigurationDeviceSummary.setLastUpdateDateTime(lastUpdateDateTime);
managedDeviceMobileAppConfigurationDeviceSummary.setConfigurationVersion(4);
ManagedDeviceMobileAppConfigurationDeviceSummary result = graphClient.deviceAppManagement().mobileAppConfigurations().byManagedDeviceMobileAppConfigurationId("{managedDeviceMobileAppConfiguration-id}").deviceStatusSummary().patch(managedDeviceMobileAppConfigurationDeviceSummary);
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 managedDeviceMobileAppConfigurationDeviceSummary = {
'@odata.type': '#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary',
pendingCount: 12,
notApplicableCount: 2,
successCount: 12,
errorCount: 10,
failedCount: 11,
lastUpdateDateTime: '2016-12-31T23:58:21.6459442-08:00',
configurationVersion: 4
};
await client.api('/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfigurationId}/deviceStatusSummary')
.update(managedDeviceMobileAppConfigurationDeviceSummary);
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\ManagedDeviceMobileAppConfigurationDeviceSummary;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new ManagedDeviceMobileAppConfigurationDeviceSummary();
$requestBody->setOdataType('#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary');
$requestBody->setPendingCount(12);
$requestBody->setNotApplicableCount(2);
$requestBody->setSuccessCount(12);
$requestBody->setErrorCount(10);
$requestBody->setFailedCount(11);
$requestBody->setLastUpdateDateTime(new \DateTime('2016-12-31T23:58:21.6459442-08:00'));
$requestBody->setConfigurationVersion(4);
$result = $graphServiceClient->deviceAppManagement()->mobileAppConfigurations()->byManagedDeviceMobileAppConfigurationId('managedDeviceMobileAppConfiguration-id')->deviceStatusSummary()->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.managedDeviceMobileAppConfigurationDeviceSummary"
pendingCount = 12
notApplicableCount = 2
successCount = 12
errorCount = 10
failedCount = 11
lastUpdateDateTime = [System.DateTime]::Parse("2016-12-31T23:58:21.6459442-08:00")
configurationVersion = 4
}
Update-MgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary -ManagedDeviceMobileAppConfigurationId $managedDeviceMobileAppConfigurationId -BodyParameter $params
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
from msgraph import GraphServiceClient
from msgraph.generated.models.managed_device_mobile_app_configuration_device_summary import ManagedDeviceMobileAppConfigurationDeviceSummary
graph_client = GraphServiceClient(credentials, scopes)
request_body = ManagedDeviceMobileAppConfigurationDeviceSummary(
odata_type = "#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary",
pending_count = 12,
not_applicable_count = 2,
success_count = 12,
error_count = 10,
failed_count = 11,
last_update_date_time = "2016-12-31T23:58:21.6459442-08:00",
configuration_version = 4,
)
result = await graph_client.device_app_management.mobile_app_configurations.by_managed_device_mobile_app_configuration_id('managedDeviceMobileAppConfiguration-id').device_status_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: 348
{
"@odata.type": "#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary",
"id": "9997c455-c455-9997-55c4-979955c49799",
"pendingCount": 12,
"notApplicableCount": 2,
"successCount": 12,
"errorCount": 10,
"failedCount": 11,
"lastUpdateDateTime": "2016-12-31T23:58:21.6459442-08:00",
"configurationVersion": 4
}