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

# customerTypeAssignAttributes Mutation

Assign attributes to a given 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
customerTypeAssignAttributes(
  attributeIds: [ID!]!
  customerTypeId: ID!
): CustomerTypeAssignAttributes
```

Details

```graphql
type CustomerTypeAssignAttributes {
  customerType: CustomerType
  errors: [CustomerTypeAssignAttributesError!]!
}
```

<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 assign. 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 to assign the attributes to.

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

### Type

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

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

Assign attributes to a given 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.
