Sales & CRMMu Mutation

updateProduct

Topics: Commerce

Update a product. Only provided fields are changed. Requires product:write permission.

Returns

UpsertProductPayload!

Arguments

id

ProductID!Required

Product ID to update

Fields to update — only provided fields are changed

Exact field SDL
"""
Update a product. Only provided fields are changed. Requires product:write permission.
"""
updateProduct(
  """Product ID to update"""
  id: ProductID!
  """Fields to update — only provided fields are changed"""
  input: UpdateProductInput!
): UpsertProductPayload! @topic(names: ["commerce"])

Declared on Mutation. Access is checked by the platform for each operation.