Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

customerUpdateMe

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

Signature

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

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
currentUserRequiredCustomerUpdateCurrentUserInformation about the current user
updatedUserDataRequiredUpdatedUserDataNew user information
customQueryOptionalCustomQueryCustom queries included in the request

Returns

User data

Referenced Types

On this page