Skip to main content

productUpdateAttribute

Updates an existing product's attribute.

Authentication Requirements

Requires authentication and 'products:update_attribute' permission for the target brand.

Validation Rules

  • Product must exist and be accessible to the authenticated user
  • Referenced attribute must exist for the product's brand
  • The attribute must belong to the product
  • The attribute value can't be blank

Possible Errors

  • **Authentication Error**: User not authenticated or lacks permissions
  • **Validation Error**: Any validation rule is violated
productUpdateAttribute(
input: UpdateProductAttributeInput!
): ProductAttribute!

Arguments

productUpdateAttribute.input ● UpdateProductAttributeInput! non-null input

Parameters for UpdateProductAttribute

Type

ProductAttribute object