Skip to content

Update an Existing Contact

Method: PUT

Url: /Contacts
Header: DPApiAuthenticationToken={YOUR_API_TOKEN}

Query String: None

Request Body:

Parameter NameData TypeRemarks
ContactID (Required)IntegerThe unique ID of the contact to be updated
FirstNameStringThe first name of the contact
LastNameStringThe last name of the contact
EmailAddressStringThe email address of the contact as registered with us
Address1StringThe first line of contact’s address
Address2StringThe second line of contact’s address
CityString
StateStringFor US states, use the abbreviation, for Non-US states, use the full state name.
ZipString
CountryString
IsNonUSAddressBooleanWhether the address is from outside the USA
WorkPhoneString
WorkExtString
MobilePhoneString
TitleString
CustomFieldsList<CustomField>List of custom fields (key-value pair) for this record
Request Example:
PUT “https://api.dataprise.com/api/v1/Contacts/”Header: “DPApiAuthenticationToken=abcxyz0123456789″Body: { “ContactID”: 1234, “FirstName”: “Test”, “LastName”: “Cntct”, “EmailAddress”: “[email protected]”, “City”: “”, “State”: “”, “Zip”: “”, “WorkPhone”: “”, “WorkExt”: “”, “MobilePhone”: “”, “Title”: “”, “CustomFields”: [“EmployeeID”: “1234”] }

Response:

The API will return the response as under:

PropertyData TypeRemarks
StatusStringStatus of the request. Either “Success” or “Failure”
MessageStringError messages if the request failed (i.e. Status = “Failure”)
IdIntegerThe ID of the updated record if the request succeeded (i.e. Status = “Success”)
Sample Response:
{ “Status”: “Success”, “Message”: “”, “Id”: 1234 }