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

# CustomerUpdate Object

Updates an existing customer.

Requires the MANAGE\_USERS permission.

Triggers the following webhook events:

-   CUSTOMER\_UPDATED (async): A new customer account was updated.
-   CUSTOMER\_METADATA\_UPDATED (async): Optionally called when customer's metadata was updated.

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

<a id="fields"></a>

### Fields

<a id="errors"></a>

#### [`errors`](#errors) ● [`[AccountError!]!`](/api-reference/users/objects/account-error.md)

<a id="user"></a>

#### [`user`](#user) ● [`User`](/api-reference/users/objects/user.md)

Show deprecatedHide deprecated

<a id="account-errors"></a>

#### [`accountErrors`](#account-errors) ● [`[AccountError!]!`](/api-reference/users/objects/account-error.md)

DEPRECATED

Use `errors` field instead.

<a id="returned-by"></a>

### Returned By

[`customerUpdate`](/api-reference/users/mutations/customer-update.md) mutation
