// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new IosUpdateConfiguration
{
OdataType = "#microsoft.graph.iosUpdateConfiguration",
Description = "Description value",
DisplayName = "Display Name value",
Version = 7,
ActiveHoursStart = new Time(DateTime.Parse("12:00:05.5020000")),
ActiveHoursEnd = new Time(DateTime.Parse("11:59:00.8990000")),
ScheduledInstallDays = new List<DayOfWeekObject?>
{
DayOfWeekObject.Monday,
},
UtcTimeOffsetInMinutes = 6,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.DeviceConfigurations["{deviceConfiguration-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
IosUpdateConfiguration deviceConfiguration = new IosUpdateConfiguration();
deviceConfiguration.setOdataType("#microsoft.graph.iosUpdateConfiguration");
deviceConfiguration.setDescription("Description value");
deviceConfiguration.setDisplayName("Display Name value");
deviceConfiguration.setVersion(7);
LocalTime activeHoursStart = LocalTime.parse("12:00:05.5020000");
deviceConfiguration.setActiveHoursStart(activeHoursStart);
LocalTime activeHoursEnd = LocalTime.parse("11:59:00.8990000");
deviceConfiguration.setActiveHoursEnd(activeHoursEnd);
LinkedList<DayOfWeek> scheduledInstallDays = new LinkedList<DayOfWeek>();
scheduledInstallDays.add(DayOfWeek.Monday);
deviceConfiguration.setScheduledInstallDays(scheduledInstallDays);
deviceConfiguration.setUtcTimeOffsetInMinutes(6);
DeviceConfiguration result = graphClient.deviceManagement().deviceConfigurations().byDeviceConfigurationId("{deviceConfiguration-id}").patch(deviceConfiguration);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.ios_update_configuration import IosUpdateConfiguration
from msgraph.generated.models.day_of_week import DayOfWeek
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = IosUpdateConfiguration(
odata_type = "#microsoft.graph.iosUpdateConfiguration",
description = "Description value",
display_name = "Display Name value",
version = 7,
active_hours_start = "12:00:05.5020000",
active_hours_end = "11:59:00.8990000",
scheduled_install_days = [
DayOfWeek.Monday,
],
utc_time_offset_in_minutes = 6,
)
result = await graph_client.device_management.device_configurations.by_device_configuration_id('deviceConfiguration-id').patch(request_body)