Skip to main content

productUpdate

Apply a partial update to an existing product.

Only the fields supplied in the input are modified; omitted fields are left untouched. The catalogue's default language must remain present in the localized name list after the update.

Possible errors:

  • PRODUCT_NOT_FOUND: The supplied identifier did not match any product.
  • PAYLOAD_VALIDATION: The combination of inputs violates a catalogue business rule.
  • SCHEMA_VALIDATION: One or more input fields failed validation.

AUTH: Role=[product.OWNER,product.EDITOR]

productUpdate(
productId: Int!
input: UpdateProductInput!
): Product!

Arguments​

productUpdate.productId ● Int! non-null scalar​

Numeric identifier of the product to update.

Must be a valid product identifier that exists in the catalogue.

productUpdate.input ● UpdateProductInput! non-null input​

Fields to update on the product. Omitted fields keep their current value.

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.