overwrite query parameter.
- v1
- v2
PUT /v1/contact/
Updates a contact by integer ID.Path parameters
The integer ID of the contact to update.
Query parameters
When
true, replaces all custom field values with the values you provide, removing any fields not included in the request. When false (the default), merges your values into the existing custom fields.Request body
The contact’s phone number in E.164 format without the leading
+.The contact’s first name.
The contact’s last name.
The full display name shown in the inbox.
The contact’s email address.
Custom field values keyed by numeric field ID string. For example,
{"123": "Premium"}. Use POST /v1/contact-fields to retrieve the available field IDs for your team.URL of an image to use as the contact’s avatar.
ID of the user to assign this contact to. Pass
-1 to unassign.List of tag objects, each with a
tag_id integer. Maximum of 5 tags.Set to
true to mark the contact as opted out.Response
Integer ID of the updated contact.
New revision number after the update.
UUID of the contact.
Examples
Basic update — name and email:How to update custom fields
Retrieve available field IDs
Call
POST /v1/contact-fields to get the list of custom fields defined for your team. Each field has a numeric id.Identify the field you want to update
Find the field by its
name in the response and note its numeric id.Build the custom object
Use the numeric ID as a string key in the
custom object. For example, if the field ID is 123, use "123" as the key.