Update a contact

Updates only the fields you send. custom_attributes replaces the stored object rather than merging into it.

Authentication

api_access_tokenstring

An API key created in Settings > Developer. A user token works too and is useful while you experiment. A key is authorized at the account level: it reaches every inbox, conversation and contact in the account that issued it, and nothing outside that account.

Path parameters

account_idintegerRequired
Your account id.
idintegerRequired
The contact id.

Request

This endpoint expects an object.
namestringOptional
emailstringOptionalformat: "email"
phone_numberstringOptionalformat: "^\+[1-9]\d{1,14}$"
identifierstringOptional
custom_attributesmap from strings to anyOptional
additional_attributesmap from strings to anyOptional

Response

The updated contact.
payloadobjectOptional

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error