//-- Intent: updates the existing scheduled alert with schedulecode of 597737 --//

var jsonString = ' \
{ \
	"$type":"API.V4.DataWrappers.Schedule_Run_Once, API.V4", \
        "IsActive":false, \
        "ScheduleCode":597947, \
	"ScheduleType":0, \
	"TaskDateTime":"4/2/2015 12:00 PM", \
	"TaskName":"My Scheduled Alert 2", \
	"Description":"Example of a scheduled alert that will run on a specific date and time", \
	"ContactLists":[668447], \
	"VoiceCode":0, \
	"FaxCode":0, \
	"EmailCode":0, \
	"SMSCode":660197, \
	"PagerCode":0, \
	"HotlinePhone":"", \
	"HotlineSettings":null \
}';


$.ajax({
  type: "PUT",
  contentType: "application/json; charset=utf-8",
  headers: {"SwiftAPI-Key": "12345"},
  url: "http://api.v4.swiftreach.com/api/Alerts/Schedules/Update",
  data: jsonString,
  dataType: "json"
  success: function(result) {
        // Do something with the result
    }

});

<!-- example return value -->
0