Rocket.Chat
Rocket.Chat copied to clipboard
feat: update contact endpoint
Proposed changes (including videos or screenshots)
Implements the endpoint to update contact.
When a contact is updated, the property unknown
is set to true.
[POST] api/v1/omnichannel/contacts.update
request example:
{
"contactId": "668830239ac5cb4b15229d6d"
"name": "Contact 1",
"emails": [
"[email protected]"
],
"phones": [
"5511999999999"
],
}
response example:
{
"contact": {
"_id": "668830239ac5cb4b15229d6d",
"name": "Contact 1",
"emails": [
"[email protected]"
],
"phones": [
"5511999999999"
],
"contactManager": "jnuReT9zctgoNKz7t",
"customFields": {},
"unknown": false,
"_updatedAt": "2024-07-05T17:50:01.581Z",
},
"success": true
}