Update Contact
PUT/contacts/:contactId
Update a contact using contactId
Request
API Version
2021-04-15Contact Id
- application/json
- Body
- Example (auto)
Bodyrequired
First name of the contact
Last name of the contact
Full name of the contact
Email address of the contact
Phone number of the contact
Street address of the contact
City of the contact
State of the contact
Postal code of the contact
Website URL of the contact
Timezone of the contact
Whether Do Not Disturb is enabled for the contact
Per-channel DND settings for the contact
Inbound DND settings per channel for the contact
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.
List of custom field values to assign to the contact
Source from which the contact was updated
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
Country code of the contact (ISO 3166-1 alpha-2), Refer country list from documentaion, documentation has list of all countries
User's Id
{
"firstName": "rosan",
"lastName": "Deo",
"name": "rosan Deo",
"phone": "+1 888-888-8888",
"address1": "3535 1st St N",
"city": "Dolomite",
"state": "AL",
"postalCode": "35061",
"website": "https://www.tesla.com",
"timezone": "America/Chihuahua",
"dnd": true,
"dndSettings": {
"Call": {
"status": "active",
"message": "Do not call"
},
"Email": {
"status": "inactive"
}
},
"inboundDndSettings": {
"all": {
"status": "active",
"message": "Do not contact me"
}
},
"tags": [
"nisi sint commodo amet",
"consequat"
],
"customFields": [
{
"id": "6dvNaf7VhkQ9snc5vnjJ",
"key": "my_custom_field",
"fieldValue": "My Text"
}
],
"source": "public api",
"dateOfBirth": "1990-09-25",
"country": "US",
"assignedTo": "y0BeYjuRIlDwsDcOHOJo"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
Whether the update operation succeeded
Legacy misspelling of succeeded. Deprecated; use succeeded.
The updated contact details
{
"succeeded": true,
"contact": {
"id": "seD4PfOuKoVMLkEZqohJ",
"name": "rubika deo",
"firstName": "rubika",
"lastName": "Deo",
"phone": "+18832327657",
"locationId": "ve9EPM428h8vShlRW1KT"
}
}