...
Code Block | ||
---|---|---|
| ||
http://<server host>/servicemanager/rest/CampaignAPI/insertLead |
Parameters:
Parameter | Description |
fTemplateId | Campaign Template id of the Template that the lead will be associated with. |
fCampaignId | Campaign id of the Campaign that the lead will be associated with. |
fAllocationId | Allocation id of the Campaign that the lead will be associated with. |
allowDuplicates | If true checking for duplicate phone numbers will NOT be performed . |
timeStamp | the authentication timestamp. |
hash | the authentication signature or hash. |
Sample query:
Code Block | ||
---|---|---|
| ||
curl -v -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"Name":"Jane Smith","StreetAddress":"Suite 8/10 Hoddle St", "City": "Abbotsford", "State":"Vic", "PostCode":"3064", "FirstPhone":"0383218199"}' 'http://<server host>/servicemanager/rest/CampaignAPI/insertLead?fTemplateId=3741&fCampaignId=4241&fAllocationId=47& timeStamp=1412212472393& hash=b529f3e9d6d20e40ff232a07c02bcad62fe6da45755abfeb618af09c9f781bf738&apiKey=f863246a-973e-11e6-8784-0800 2718f5b5&allowDuplicates=true' |
Sample success response:
Code Block | ||
---|---|---|
| ||
{"typecode":"Campaign"0,"entitiesmessage":[{"id":42,"name":"Jan16a"},{"id":44,"name":"updatetest"}],"code":0,"message":"OK"Imported 1 Updated 0 Rejected 0 leads.\n\nErrors (If any):\n Name,State,PostCode,FirstPhone,City,StreetAddress,Error Reason,\n"} |