Update a contact
Actualiza un contacto existente
Updates an existing contact. Only the contact fields that are included in the body will be updated. The first contact will be updated when duplicate contacts with the defined identifier exist.
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
"contactId": 0
}{
"code": 400,
"message": "Validation error."
}{
"code": 500,
"message": "Unexpected error occurred"
}Ejemplo de la petición:
curl --request PUT \
--url https://api.chatapi.net/v2/contact/identifier \
--header 'Authorization: Bearer 123456789012345678901234567890' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "Juan",
"lastName": "Perez",
"phone": "+593998445678",
"email": "[email protected]",
"language": "es",
"profilePic": "https://cdn.ecuabots.com/profile_avatar.png",
"countryCode": "EC",
"custom_fields": [
{
"name": "Company Website",
"value": "https://example.com"
}
]
}'Respuesta - Success (HTTP status → 200)
Last updated