Home > @vsf-enterprise/commercetools-api > customerUpdateMe

# customerUpdateMe() function

Endpoint for updating data of the currently logged user. By default, it uses the customerUpdateMeDefaultQuery GraphQL query

Signature:

export declare function customerUpdateMe(context: Context, currentUser: CustomerUpdateCurrentUser, updatedUserData: UpdatedUserData, customQuery?: CustomQuery): Promise<CustomerUpdateMeResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
currentUser CustomerUpdateCurrentUser Information about the current user
updatedUserData UpdatedUserData New user information
customQuery CustomQuery Custom queries included in the request

Returns:

Promise<CustomerUpdateMeResponse>

User data