Click or drag to resize

IJobApiUpdateSchedule Method

Update the existing job scheduler with the new scheduler

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
void UpdateSchedule(
	string id,
	JobSchedule schedule
)

Parameters

id  String
The Job Id
schedule  JobSchedule
The Job Schedule
Example
C#
var jobApi = ctx.Use<IJobApi>();
var jobId = "theJobId";
var schedule = new MinutelyJobSchedule 
{
    Recurrence = 10,
    AllDay=true
});
jobApi.UpdateSchedule(jobId, schedule);
See Also