API: Create new Scheduler

Scheduler can be created using two methods:

PUT on the following URI : /schedulers
POST on the following URI: /schedulers?verb=PUT
PUT / POST Content example (formatted):

{
“Name”: “new scheduler”,
“Description”: “description”,
“Weekly_Intervals”: [{
“Days”: [“Su”, “Mo”, “Tu”, “We”, “Th”, “Fr”, “Sa”],
“From_Min”: 0,
“To_Min”: 1025,
“Included”: true
}, {
“Days”: [“Su”, “Sa”],
“From_Min”: 0,
“To_Min”: 1139,
“Included”: false
}, {
“Days”: [“Su”, “Mo”, “Fr”, “Sa”],
“From_Min”: 120,
“To_Min”: 240,
“Included”: false
}],
“Date_Time_Intervals”: [{
“From”: 1358712000000,
“To”: 1358798400000
}] }

Success response:

{
“Success”:true,
“Result”:871
}

Note that seconds value should be zero when converting “From” and “To” intervals to epoch time.