---
title: "productUpdate"
description: >
  Updates a product in the store.   :::tip{title="TIP"} Product SEO details are managed via metafields. For operation instructions, refer to [Editing SEO information for the corresponding resource page through metafield's Open API](https://developer.shopline.com/docs/apps/shopline-metafields/overview#metafields-seo-data-optimization).  When updating a product via this API, the product's SEO information will not be updated. :::
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/product-update'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/product-update.md'
---
# productUpdate

Updates a product in the store. 

:::tip{title="TIP"}
Product SEO details are managed via metafields. For operation instructions, refer to [Editing SEO information for the corresponding resource page through metafield's Open API](https://developer.shopline.com/docs/apps/shopline-metafields/overview#metafields-seo-data-optimization).

When updating a product via this API, the product's SEO information will not be updated.
:::

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Arguments

* `input`

  [ProductInput!](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/product-input.md)

  The product fields for the product update.

* `media`

  [[CreateMediaInput!]](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/create-media-input.md)

  The media fields for the product update.

## Returns

* `product`

  [Product](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product.md)

  The modified product instance.

* `userErrors`

  [[UserError]!](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/user-error.md)

  List of errors returned during mutation execution.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

