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

# 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 the MANAGE\_CUSTOMER\_TYPES\_AND\_ATTRIBUTES permission.

Triggers the following webhook events:

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

```graphql
customerTypeUnassignAttributes(
  attributeIds: [ID!]!
  customerTypeId: ID!
): CustomerTypeUnassignAttributes
```

Details

```graphql
type CustomerTypeUnassignAttributes {
  customerType: CustomerType
  errors: [CustomerTypeUnassignAttributesError!]!
}
```

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

### Arguments

<a id="attribute-ids"></a>

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

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

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

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

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

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

### Type

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

#### [`CustomerTypeUnassignAttributes`](/api-reference/users/objects/customer-type-unassign-attributes.md)

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 the MANAGE\_CUSTOMER\_TYPES\_AND\_ATTRIBUTES permission.

Triggers the following webhook events:

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