---
title: accountUpdate Mutation
seo:
  title: accountUpdate Mutation
  description: 'Mutation: accountUpdate Mutation'
slug: api-reference/users/mutations/account-update
sidebar:
  label: accountUpdate
search:
  tags:
    - API reference
    - Users
lastModified: '2026-04-13'
---

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.



**Applied directives**

```graphql
@webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: [])
```



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

## Returns

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

<details>
<summary>Show return type</summary>


```graphql
type AccountUpdate {
  accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [AccountError!]!
  user: User
}
```


</details>

## Arguments

### customerId [#customer-id]

**`customerId`** · [`ID`](/api-reference/miscellaneous/scalars/id)

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.



### input [#input]

**`input`** · [`AccountInput!`](/api-reference/users/inputs/account-input)

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

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
