productUpdate
Update an existing product's information.
Modifies product details including specifications, categories, attributes, media, pricing, and visibility settings. Only provided fields will be updated, others remain unchanged.
Possible errors:
- UPDATE_PRODUCT_ERROR: Failed to update the product
- PRODUCT_FETCH_ERROR: Product with the specified ID does not exist
AUTH: Role=[product.OWNER,product.EDITOR]
productUpdate(
productId: Int!
input: UpdateProductInput!
): Product!
Arguments
productUpdate.productId
● Int!
non-null scalar
Unique identifier of the product to update.
Must be a positive integer representing a valid product ID in the system.
productUpdate.input
● UpdateProductInput!
non-null input
Updated product information.
Contains the product properties to update. Only provided fields will be changed, others remain unchanged.
Type
Product
object
Product entity representing items in the product catalog.
External entity from the product service that provides basic product identification and categorization. Used as a reference for product-specific attributes and relationships within the attribute system.