POST /campaign/flat/template

Update an existing Campaign Template in the system. The GUID provided in the body of the message must match the ID of a Campaign Template in the system.
Resource URL:

POST http://slingshot.surgentnetworks.com/api/campaign/flat/template

Header Parameters:

Parameter Value Required?
X-Security-Token [your security token] Yes
Content-Type application/json or application/xml Yes

Example Content / JSON

01{
02"guid":"1234567890",
03"campaignDescription":"Some Test Campaign",
04"campaignPriority":1,
05"campaignTitle":"Title",
06"accountGuid":"111222333444",
07"testMode":false,
08"respectDoNotCallList":true,
09"ignoreDuplicates":true,
10"campaignCallbackNumberPhone":"+15556667777",
11"campaignCallbackNumberSms":"+5557776666",
12"messagePhoneType":"VXML",
13"messagePhoneLiveBody":"http://liveVxml.vxml",
14"messagePhoneAnsweringMachineBody":"http://amVxml.vxml",
15"messageSmsType":"SMS",
16"messageSmsBody":"This is an SMS text",
17"messageMailBody":"This is an e-mail Message"
18}

Expected Result:
Header:

HTTP/1.1 200 OK

Body:

None

PUT /campaign/flat/template

Create a new Campaign Template.
Resource URL:

PUT http://slingshot.surgentnetworks.com/api/campaign/flat/template

Header Parameters:

Parameter Value Required?
X-Security-Token [your security token] Yes
Content-Type application/json or application/xml Yes

Example Content / JSON

01{
02"campaignDescription":"Some Test Campaign",
03"campaignPriority":1,
04"campaignTitle":"Title",
05"accountGuid":"111222333444",
06"guid":"1234567890",
07"testMode":false,
08"respectDoNotCallList":true,
09"ignoreDuplicates":true,
10"campaignCallbackNumberPhone":"+15556667777",
11"campaignCallbackNumberSms":"+5557776666",
12"messagePhoneType":"VXML",
13"messagePhoneLiveBody":"http://liveVxml.vxml",
14"messagePhoneAnsweringMachineBody":"http://amVxml.vxml",
15"messageSmsType":"SMS",
16"messageSmsBody":"This is an SMS text",
17"messageMailBody":"This is an e-mail Message"
18}

Expected Result:
Header:

HTTP/1.1 201 Created

Body:

None