Days in week for which active hours are configured. This collection can contain a maximum of 7 elements. Possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday.
utcTimeOffsetInMinutes
Int32
UTC Time Offset indicated in minutes
Response
If successful, this method returns a 201 Created response code and a iosUpdateConfiguration object in the response body.
// 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.PostAsync(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().post(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.post(request_body)
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.