Skip to main content
ContactsVersion: v3New

Update Contact

PUT/contacts/{contactId}

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.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:contacts.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version. Send v3.

Available optionsv3
Example:v3

Path Parameters

contactIdstringrequired

Unique identifier of the contact

Example:ve9EPM428h8vShlRW1KT

Body

firstNamestringnullable

First name of the contact

Example:rosan
lastNamestringnullable

Last name of the contact

Example:Deo
namestringnullable

Full name of the contact

Example:rosan Deo
emailstringnullable

Email address of the contact

phonestringnullable

Phone number of the contact

Example:+1 888-888-8888
address1stringnullable

Street address of the contact

Example:3535 1st St N
citystringnullable

City of the contact

Example:Dolomite
statestringnullable

State of the contact

Example:AL
postalCodestring

Postal code of the contact

Example:35061
websitestringnullable

Website URL of the contact

Example:https://www.tesla.com
timezonestringnullable

Timezone of the contact

Example:America/Chihuahua
dndboolean

Global 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

Example:true
inboundDndSettingsobject

Do 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

Example
{
  "all": {
    "status": "active",
    "message": "Do not contact me"
  }
}
tagsstring[]

This field will overwrite all current tags associated with the contact. To update a tags, it is recommended to use the Add Tag or Remove Tag API instead.

Example:["nisi sint commodo amet","consequat"]
customFieldsobject[]

List of custom field values to assign to the contact

Example
[
  {
    "id": "6dvNaf7VhkQ9snc5vnjJ",
    "key": "my_custom_field",
    "fieldValue": "My Text"
  }
]
sourcestringnullable

Source from which the contact was updated

Example:public api
dateOfBirthstringnullable

The 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

Example:1990-09-25
countrystring

Country code of the contact (ISO 3166-1 alpha-2), Refer country list from documentaion, documentation has list of all countries

Example:US
assignedTostringnullable

User's Id

Example:y0BeYjuRIlDwsDcOHOJo
additionalEmailsobject[]

⚠️ 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

Example
[
  {
    "email": "[email protected]"
  }
]
additionalPhonesobject[]

⚠️ 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

Example
[
  {
    "phone": "+18832327657",
    "phoneLabel": "Mobile"
  }
]
dndSettingsobject

Per-channel DND settings, independent of the global dnd switch; channel keys are call, email, sms, whatsApp, gmb and fb on Version v3 and later, and Email-style keys are rejected with 422

Example
{
  "call": {
    "status": "active",
    "message": "Do not call"
  },
  "email": {
    "status": "inactive"
  }
}

Response

Successful response

succeededboolean

Whether the update operation succeeded

Example:true
contactobject

Contact details