Skip to main content

attributeUpdate Mutation

Updates attribute.

Requires one of the following permissions, depending on the attribute type: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES for `PRODUCT_TYPE` attributesMANAGE_PAGE_TYPES_AND_ATTRIBUTES for `PAGE_TYPE` attributesMANAGE_CUSTOMER_TYPES_AND_ATTRIBUTES for `CUSTOMER_TYPE` attributes

Triggers the following webhook events:

  • ATTRIBUTE_UPDATED (async): An attribute was updated.
attributeUpdate(
externalReference: String
id: ID
input: AttributeUpdateInput!
): AttributeUpdate
Details
type AttributeUpdate {
attribute: Attribute
attributeErrors: [AttributeError!]! @deprecated
errors: [AttributeError!]!
}

Arguments

externalReference ● String

External ID of an attribute to update.

id ● ID

ID of an attribute to update.

input ● AttributeUpdateInput!

Fields required to update an attribute.

Type

AttributeUpdate

Updates attribute.

Requires one of the following permissions, depending on the attribute type: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES for `PRODUCT_TYPE` attributesMANAGE_PAGE_TYPES_AND_ATTRIBUTES for `PAGE_TYPE` attributesMANAGE_CUSTOMER_TYPES_AND_ATTRIBUTES for `CUSTOMER_TYPE` attributes

Triggers the following webhook events:

  • ATTRIBUTE_UPDATED (async): An attribute was updated.