updateContact( )


Updates a contact's properties.

The updateContact() function returns a Promise that resolves when the specified contact's information is updated.

Note: This function replaces the deprecated wixCrmBackend.updateContact(). The deprecated function will continue to work, but it will not receive updates. To keep any existing code compatible with future changes, see the migration instructions.

Each time the contact is updated, revision increments by 1. The existing revision must be included when updating the contact. This ensures you're working with the latest contact information, and it prevents unintended overwrites.

Note: Only visitors with Manage Contacts permissions can update contacts. You can override the permissions by setting the suppressAuth option to true.

Method Declaration
Copy
Method Parameters
identifiersIdentifiersRequired

Contact ID and revision number.


contactInfoContactInfoRequired

Contact info.


optionsOptions

Contact update options.

Returns
Return Type:Promise<Contact>
Was this helpful?
Yes
No