> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/users/llms.txt)
> Source: https://docs.saleor.io/api-reference/users/mutations/account-update

# 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.

```graphql
accountUpdate(
  customerId: ID
  input: AccountInput!
): AccountUpdate
```

Details

```graphql
type AccountUpdate {
  accountErrors: [AccountError!]! @deprecated
  errors: [AccountError!]!
  user: User
}
```

<a id="arguments"></a>

### Arguments

<a id="customer-id"></a>

#### [`customerId`](#customer-id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

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

<a id="input"></a>

#### [`input`](#input) ● [`AccountInput!`](/api-reference/users/inputs/account-input.md)

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

<a id="type"></a>

### Type

<a id="accountupdate"></a>

#### [`AccountUpdate`](/api-reference/users/objects/account-update.md)

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.
