attributeValueUpdate Mutation
Updates value of an attribute.
Requires one of the following permissions, depending on the type of the value’s attribute: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES for PRODUCT_TYPE attributes, MANAGE_PAGE_TYPES_AND_ATTRIBUTES for PAGE_TYPE attributes, MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTES for CUSTOMER_TYPE attributes.
Triggers the following webhook events:
- ATTRIBUTE_VALUE_UPDATED (async): An attribute value was updated.
- ATTRIBUTE_UPDATED (async): An attribute was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_UPDATED, ATTRIBUTE_UPDATED], syncEvents: [])
attributeValueUpdate(externalReference: String, id: ID, input: AttributeValueUpdateInput!): AttributeValueUpdate
Returns
Show return type
type AttributeValueUpdate {
attribute: Attribute
attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [AttributeError!]!
attributeValue: AttributeValue
}Arguments
externalReference
externalReference · String
External ID of an AttributeValue to update.
id
id · ID
ID of an AttributeValue to update.
input
input · AttributeValueUpdateInput!
Fields required to update an AttributeValue.
Schema: Saleor 3.23.43. Download SDL.