Skip to main content

customerTypeAssignAttributes Mutation

Assign attributes to a given 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.
customerTypeAssignAttributes(
attributeIds: [ID!]!
customerTypeId: ID!
): CustomerTypeAssignAttributes
Details
type CustomerTypeAssignAttributes {
customerType: CustomerType
errors: [CustomerTypeAssignAttributesError!]!
}

Arguments​

attributeIds ● [ID!]!​

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

customerTypeId ● ID!​

ID of the customer type to assign the attributes to.

Type​

CustomerTypeAssignAttributes​

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