Skip to main content

customerTypeUpdate Mutation

Updates a customer type.

Added in Saleor 3.23.

Requires the MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • CUSTOMER_TYPE_UPDATED (async): A customer type was updated.
customerTypeUpdate(
id: ID!
input: CustomerTypeUpdateInput!
): CustomerTypeUpdate
Details
type CustomerTypeUpdate {
errors: [CustomerTypeUpdateError!]!
customerType: CustomerType
}

Arguments​

id ● ID!​

ID of the customer type to update.

input ● CustomerTypeUpdateInput!​

Fields required to update a customer type.

Type​

CustomerTypeUpdate​

Updates a customer type.

Added in Saleor 3.23.

Requires the MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • CUSTOMER_TYPE_UPDATED (async): A customer type was updated.