Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

feat: update contact endpoint

Open tapiarafael opened this issue 7 months ago • 3 comments

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
}

Issue(s)

Steps to test or reproduce

Further comments

SCI-34

tapiarafael avatar Jul 05 '24 17:07 tapiarafael