IJobApiUpdateSchedule Method

Update the existing job scheduler with the new scheduler

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
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