Add Contact To List
Add an email/contact with associated fields to the specified list.
Function
addContactToList()
Url
- POST:
/PuresendService/v1/addContactToList
Parameters
- listId:
int
- id of the list to which the email will be added to
- email:
String
- email address to be added
- fieldValues:
String[]
- array of the field values as specified for the list. This will constitute one entry in the list.
- allowDuplcates:
boolean
- insert an email even if it exists in the list specified.
Return
Contact
:- added Contact object.
Exception
- Exception
Documentation
- Add an email/contact with associated fields to the specified list.
Examples
{
"listId" : 1234,
"email" : "test@email.address",
"fieldValues": [
"From",
"from@email.com",
"Custom1",
"Custom2",
"Custom3",
"Custom4",
"Custom5",
"Company Name",
"01-2345-6789",
"Brand Name",
"Source",
"Address",
"City",
"State",
"Zip",
"Job Title",
"Country",
"Unique ID",
"Income",
"Gender"
],
"allowDuplicates" : 0
}
{
"id": 123456790470494,
"listId": 1234,
"email": "test@email.address",
"emailBounced": false,
"optOut": false,
"columnValues": [
"From",
"from@email.com",
"Custom1",
"Custom2",
"Custom3",
"Custom4",
"Custom5",
"Company Name",
"01-2345-6789",
"Brand Name",
"Source",
"Address",
"City",
"State",
"Zip",
"Job Title",
"Country",
"Unique ID",
"Income",
"Gender"
]
}