Update Contact
Update a contact using contactId
Conditional updates are not supported: If-Match is ignored, so the update is applied even if the contact changed after you read it. Do not use the response ETag for concurrency control. If a request times out, get the contact again before you retry.
Update is a partial update. Only the fields you send change. Fields you leave out keep their current values.
- To remove a value, send
null. This works forfirstName,lastName,email,phone,address1,city,state,postalCode,country,website,timezone,dateOfBirth,assignedToandsource. To remove the name, sendfirstNameandlastNameasnull;name: nullleaves the name unchanged. An empty string does not remove a value. Depending on the field, it is ignored or rejected with 422. tagsreplaces all of the contact's tags. Send[]ornullto remove every tag.additionalEmailsandadditionalPhonesreplace the stored lists. Send[]ornullto empty them.- In
customFields, only the custom fields you list change. To clear one, send it withvalueset tonullor an empty string. dndSettingschanges only the channels you send.dndSettings: nullis rejected with 400.- If the contact has no country and the request does not set one, the location's country is saved on the contact, or the agency's country if the location has none.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
contacts. writeOAuthPrivate IntegrationSub-Account TokenRequest
Headers
API Version. Send v3.
v3v3Path Parameters
Unique identifier of the contact
ve9EPM428h8vShlRW1KTBody
First name of the contact
rosanLast name of the contact
DeoFull name of the contact
rosan DeoPhone number of the contact.
Phone numbers in phone and additionalPhones are saved in E.164 format, for example +14155550123. Send E.164 when you can. A number without a country code is read as a number in the country you send. If you do not send country, the contact's saved country is used on update, then the location's country, then US. Spaces, dashes and brackets are removed.
+14155550123Street address of the contact
3535 1st St NCity of the contact
DolomiteState of the contact
ALPostal code of the contact. A number is saved as a string. On update, send null to remove it. An empty string leaves it unchanged.
35061Website URL of the contact
https://www.tesla.comTimezone of the contact
America/ChihuahuaGlobal Do Not Disturb switch for all channels; true blocks every channel irrespective of current dndSettings, and it does not add or change any dndSettings entry
trueDo Not Disturb for inbound communication from the contact, independent of dnd and dndSettings; only the all key is accepted, with status active or inactive, and any other key is rejected with 422
{
"all": {
"status": "active",
"message": "Do not contact me"
}
}
Replaces all of the contact's tags with this list. Tags that are not in the list are removed from the contact, and an empty array removes every tag. Leave this field out to keep the current tags. Tag names are saved in lowercase, and a tag that does not exist in the location yet is created.
To add or remove tags without replacing the others, use Add Tags (POST /contacts/{contactId}/tags) or Remove Tags (DELETE /contacts/{contactId}/tags).
["nisi sint commodo amet","consequat"]List of custom field values to assign to the contact
[
{
"id": "6dvNaf7VhkQ9snc5vnjJ",
"key": "my_custom_field",
"fieldValue": "My Text"
}
]
Source from which the contact was updated
public apiThe birth date of the contact. Supported formats: YYYY/MM/DD, MM/DD/YYYY, YYYY-MM-DD, MM-DD-YYYY, YYYY.MM.DD, MM.DD.YYYY, YYYY_MM_DD, MM_DD_YYYY
1990-09-25Gender of the contact. Before v4, Create, Update and Upsert accept it, and the contact returned by Get, lookup, duplicate search and the write responses includes it; Search results do not. Deprecated: from v4 on it is neither accepted nor returned, so store gender in a contact custom field instead.
maleContact type. One of the options of the location's Contact Type field (lead and customer by default), matched by option value or option name, ignoring case. A value that matches no option does not change the contact's type.
leadCountry of the contact, as an ISO 3166-1 alpha-2 code, for example US or GB. The code is not case-sensitive, and the English country name (or UK) is also accepted. Either way, the upper-case code is saved. A value that is not recognised is ignored and the current country is kept. An empty string is rejected with 422. A phone number sent without a country code is read as a number in this country. Send null to remove it. If the contact has no country and the request does not set one, the location's country is saved, or the agency's country if the location has none.
USUser's Id
y0BeYjuRIlDwsDcOHOJo⚠️ Always send the primary together with the additionals (email with additionalEmails).
Array of { email }, maximum 10. email stays the contact's primary email. Additional values are extra addresses on the same contact.
If the location has uniqueness check enabled on email and any email you send (primary or additional) already belongs to another contact, the request fails with BadRequest (400) and nothing is saved.
Possible values: <= 10
[
{
"email": "[email protected]"
}
]
⚠️ Always send the primary together with the additionals (phone with additionalPhones).
Array of { phone, phoneLabel? }, maximum 10. phoneLabel is one of Home, Work, Mobile, Landline. phone stays the contact's primary phone. Additional values are extra numbers on the same contact.
If the location has uniqueness check enabled on phone and any phone number you send (primary or additional) already belongs to another contact, the request fails with BadRequest (400) and nothing is saved.
Possible values: <= 10
[
{
"phone": "+18832327657",
"phoneLabel": "Mobile"
}
]
Per-channel DND settings, independent of the global dnd switch; channel keys are call, email, sms, whatsApp, gmb and fb on this Version, and capitalised keys such as Email are rejected with 422.
Channels you leave out keep their current status. The permanent status is normally set by the platform, for example after an SMS opt-out. Through this API:
- Create Contact, and Upsert when it creates a contact, reject
permanenton any channel with 401. - Update Contact, and Upsert when it updates a contact, can set
emailtopermanentand can change apermanentemailback toactiveorinactive. - Changing
smsorwhatsAppto or frompermanentreturns 401. Changingcall,gmborfbto or frompermanentreturns 400. - Sending
permanentfor a channel that is alreadypermanentis accepted. The status stayspermanent, and themessageandcodeof the channel are replaced with the values you send.
{
"call": {
"status": "active",
"message": "Do not call"
},
"email": {
"status": "inactive"
}
}
Response
Successful response
Whether the update operation succeeded
trueContact details