> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Product

> Update a master catalog product.

Updates the product's details; only the provided fields are changed.

## Path parameters

**id** `string` *required*

The product's ID.

## Body parameters

**title** `string`

Product title.

**subtitle** `string`

Product subtitle.

**description** `string`

Product description.

**handle** `string`

Unique URL-safe handle.

**status** `string`

One of `draft`, `proposed`, `published`, `rejected`.

**is\_giftcard** `boolean`

Whether the product is a gift card.

**discountable** `boolean`

Whether discounts can apply to the product.

**thumbnail** `string`

URL of the product thumbnail.

**images** `object[]`

Product images; replaces the existing set.

**properties**

**id** `string`

Existing image ID to keep.

**url** `string` *required*

Image URL.

**external\_id** `string`

ID of the product in an external system.

**type\_id** `string`

ID of the product type.

**collection\_id** `string`

ID of the collection to assign the product to.

**categories** `object[]`

Categories to assign; replaces the existing set.

**properties**

**id** `string` *required*

Category ID.

**tags** `object[]`

Tags to assign; replaces the existing set.

**properties**

**id** `string` *required*

Tag ID.

**options** `object[]`

Product options; replaces the existing set.

**properties**

**title** `string` *required*

Option title.

**values** `string[]` *required*

Possible option values.

**variants** `object[]`

Variants to upsert; include `id` to update an existing variant.

**properties**

**id** `string`

Existing variant ID.

**title** `string`

Variant title.

**sku** `string`

Variant SKU.

**ean** `string`

Variant EAN.

**upc** `string`

Variant UPC.

**isbn** `string`

Variant ISBN.

**asin** `string`

Variant ASIN.

**gtin** `string`

Variant GTIN.

**barcode** `string`

Variant barcode.

**hs\_code** `string`

Harmonized System code.

**mid\_code** `string`

Manufacturer identification code.

**thumbnail** `string`

URL of the variant thumbnail.

**variant\_rank** `number`

Sort rank of the variant.

**weight** `number`

Variant weight.

**length** `number`

Variant length.

**height** `number`

Variant height.

**width** `number`

Variant width.

**origin\_country** `string`

Country of origin.

**material** `string`

Variant material.

**prices** `object[]`

Prices with `id`, `currency_code`, `amount`, `min_quantity`, `max_quantity`, and `rules`.

**options** `object`

Map of option title to option value.

**metadata** `object`

Custom key-value data.

**weight** `number`

Product weight.

**length** `number`

Product length.

**height** `number`

Product height.

**width** `number`

Product width.

**hs\_code** `string`

Harmonized System code.

**mid\_code** `string`

Manufacturer identification code.

**origin\_country** `string`

Country of origin.

**material** `string`

Product material.

**metadata** `object`

Custom key-value data.

**additional\_data** `object`

Custom data passed to workflow hooks.

## Response

**product** `object`

**properties**

**id** `string`

The product's ID.

**title** `string`

Product title.

**status** `string`

One of `draft`, `proposed`, `published`, `rejected`.

**variants** `object[]`

Product variants.

**product\_attribute\_values** `object[]`

Attribute values selected on the product.

**scoped\_attributes** `object[]`

Product-scoped (inline) attributes.

**updated\_at** `string`

Last update timestamp.

```bash cURL theme={null}
curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{"title": "Linen Shirt v2", "status": "published"}'
```

```ts JS Client theme={null}
const { product } = await client.admin.products.$id.mutate({
  $id: "prod_01HXYZABCDEF",
  title: "Linen Shirt v2",
  status: "published",
})
```

```json 200 theme={null}
{
  "product": {
    "id": "prod_01HXYZABCDEF",
    "title": "Linen Shirt v2",
    "handle": "linen-shirt",
    "status": "published",
    "updated_at": "2026-06-02T09:00:00.000Z"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.