Update a contact
Update only supplied contact fields.
PATCH
/v1/leads/{lead_id}Requires the leads:write scope
Requires leads:write. Omitted fields, internal CRM metadata and related records are preserved. Supply null to clear a secondary phone, landline or email. Required fields cannot be cleared. search_preferences replaces the preference list.
Example request
curl -X PATCH "https://api.vestta.app/v1/leads/1" \
-H "X-Api-Key: $VESTTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ana García",
"personal_email": "ana@example.com"
}'Authorization
X-Api-KeystringheaderrequiredYour API key,
AC_LIVE_<key_id>.<secret>.Authorization: ApiKey <key>is also accepted.
Path parameters
lead_idintegerrequired≥ 1
Request body
application/json · required
namestring1–200 charstypestringOne of
demandantepropietarioagencia-inmobiliariaentidad-bancariaproveedor-serviciosphone_number_1string5–30 charsphone_number_2string≤ 30 charslandline_phonestring≤ 30 charspersonal_emailstring≤ 254 charsprofessional_emailstring≤ 254 charspreferred_languagestringOne of
esgbfrgeitactivebooleansourcestring1–100 charssearch_preferencesarray of objects
Response
200 Successful response.
Example response
Response fields
statusstring default:okalwaysokidintegerrequired
Errors
Error bodies and how to handle each case: Errors.