updateMember( )


Updates a member's properties.

The updateMember() function returns a Promise that resolves to a member object when the specified member is updated.

Note: The updated Member object contains only the fields that were explicity added to the Member object. Custom Contact fields are not automatically added to the Member object. They must be added to the Member object by the site owner.

Only the requested fields are updated.

Note: Updating the contactDetails.addresses, contactDetails.emails, or contactDetails.phones array overwrites the entire array, so any existing values you want to retain must be passed in the updateMember() call along with the new values to add.

However, passing an empty array will have no effect, and these functions must be used to clear all data from the respective array:

Method Declaration
Copy
Method Parameters
idstringRequired

Member ID.


memberMemberInfoRequired

Member details to update.

Returns
Return Type:Promise<Member>
Did this help?