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.
PUT
/v2/contact/{identifier}
Provide your bearer token in the Authorization header when making requests to protected resources. Example: Authorization: Bearer 123
Identifier of the contact that can either be a phone number, email or contact ID. Examples: id:123
, email:[email protected]
, phone:+593998344567
Path Parameters
Name
Type
Description
identifier*
String
Headers
Name
Type
Description
Token*
Bearer token
Request Body
Name
Type
Description
Parameters
Json
{
"contactId": 0
}
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)
{
"contactId": 0
}
Last updated