Skip to main content

accountUpdate Mutation

Updates the account of the logged-in user.

Requires one of following set of permissions: AUTHENTICATED_USER or AUTHENTICATED_APP + IMPERSONATE_USER.

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A customer account was updated.
  • CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated.
accountUpdate(
customerId: ID
input: AccountInput!
): AccountUpdate

Arguments

accountUpdate.customerId ● ID scalar miscellaneous

ID of customer the application is impersonating. The field can be used and is required by apps only. Requires IMPERSONATE_USER and AUTHENTICATED_APP permission.

Added in Saleor 3.19

accountUpdate.input ● AccountInput! non-null input users

Fields required to update the account of the logged-in user.

Type

AccountUpdate object users

Updates the account of the logged-in user.

Requires one of following set of permissions: AUTHENTICATED_USER or AUTHENTICATED_APP + IMPERSONATE_USER.

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A customer account was updated.
  • CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated.