Skip to main content
Version: Current

Schedule.UpdateScheduleAsync

Description​

Update the Schedule (Time Trigger) with specified ScheduleInfo details from the connected AI Command Center.

Signature [C#]​

Task UpdateScheduleAsync(ScheduleInfo scheduleInfo)

Properties​

Input​

PropertyDescription
ScheduleInfoSpecify the update details of a Schedule (Time Trigger).

Remarks​

Use UpdateScheduleAsync API to update information about the Schedule (Time Trigger) with specified ScheduleInfo details inside the connected AI Command Center.

Example​

C#
public void UpdateTimeTrigger()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");

string updateTriggerName = "updateTrigger";

ScheduleInfo scheduleInfo = new ScheduleInfo()
{
ScheduleId = 1,
Name = updateTriggerName
};

Task.Run(() => context.Schedules.UpdateScheduleAsync(scheduleInfo)).Wait();
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;

connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);

context.Open();
return context;
}