Update
/api/v1/contacts/{id}This endpoint allows you to perform an update on a contact.
Request
Authorization
Bearer Token
Provide your API token in the Authorization header. See Authentication to issue one.
Example:Authorization: Bearer ********************
idstringrequiredContact ID
Example:
usernamestringrequiredThe username for the contact.
emailarray[object]requiredAn array of objects which has email and isPrimary as keys. (can be provided as empty array). Provide empty array to update all fields you have included in request body.
Child attributes
emailstringrequiredisPrimarybooleanrequired
phonearray[object]requiredAn array of objects which has phone and isPrimary as keys. (can be provided as empty array). Provide empty array to update all fields you have included in request body.
Child attributes
phonestringrequiredisPrimarybooleanrequired
companystringoptionalName of the company associated with the contact.
tagsarray[string]optionalAssociated tags with this contact. (an array of tags'names and will create new tag if not exists)
channelstringoptionalThe channel where received the contact. Example: phone, email, viber, etc. (accept only name of the channel you have in app).
addressstringoptionalAddress of the contact.
notesstringoptionalThe contact's note that saved by agent.
customFieldsobjectoptionalA key value pair object with name of custom field as key.
Responses
200OK
OK
statusstringrequiredmessagestringrequireddatanullrequired