Storefront GraphQL APIMutations
updateAccount
Update a user
Arguments
input·UpdateAccountInput!non-nullinputReturn type
UpdateAccountPayloadobjectsuccess·Booleanscalarerrors·ExpectedErrorTypescalarclientMutationId·Stringscalarmutation UpdateAccount($input: UpdateAccountInput!) { updateAccount(input: $input) { success errors clientMutationId }}{ "input": { "email": "<your-value>", "firstName": "<your-value>", "lastName": "<your-value>", "phoneNumber": "<your-value>", "acceptsMarketing": true, "language": "en", "metadata": {}, "clientMutationId": "<your-value>" }}{ "data": { "updateAccount": { "success": true, "errors": null, "clientMutationId": "<your-value>" } }}