Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

customerTypeUnassignAttributes Mutation

Unassign attributes from a given customer type. Values already assigned to users are kept in the database, but are hidden until the attribute is assigned to the user’s customer type again.

Added in Saleor 3.23.

Requires one of the following permissions:MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTES

Triggers the following webhook events:

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

Applied directives

@webhookEventsInfo(asyncEvents: [CUSTOMER_TYPE_UPDATED], syncEvents: [])
customerTypeUnassignAttributes(attributeIds: [ID!]!, customerTypeId: ID!): CustomerTypeUnassignAttributes

Returns

CustomerTypeUnassignAttributes

Show return type
type CustomerTypeUnassignAttributes {
  customerType: CustomerType
  errors: [CustomerTypeUnassignAttributesError!]!
}

Arguments

attributeIds

attributeIds · [ID!]!

The IDs of the attributes to unassign. Maximum of 100 items.

customerTypeId

customerTypeId · ID!

ID of the customer type from which the attributes should be unassigned.


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?