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

# customerTypeUpdate Mutation

Updates a customer type.

Added in Saleor 3.23.

Requires the MANAGE\_CUSTOMER\_TYPES\_AND\_ATTRIBUTES permission.

Triggers the following webhook events:

-   CUSTOMER\_TYPE\_UPDATED (async): A customer type was updated.

```graphql
customerTypeUpdate(
  id: ID!
  input: CustomerTypeUpdateInput!
): CustomerTypeUpdate
```

Details

```graphql
type CustomerTypeUpdate {
  errors: [CustomerTypeUpdateError!]!
  customerType: CustomerType
}
```

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

### Arguments

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

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

ID of the customer type to update.

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

#### [`input`](#input) ● [`CustomerTypeUpdateInput!`](/api-reference/users/inputs/customer-type-update-input.md)

Fields required to update a customer type.

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

### Type

<a id="customertypeupdate"></a>

#### [`CustomerTypeUpdate`](/api-reference/users/objects/customer-type-update.md)

Updates a customer type.

Added in Saleor 3.23.

Requires the MANAGE\_CUSTOMER\_TYPES\_AND\_ATTRIBUTES permission.

Triggers the following webhook events:

-   CUSTOMER\_TYPE\_UPDATED (async): A customer type was updated.
