# Update a product

Updates a product. Fields you leave out keep their current values. Works with Shopify accounts.

```http
PATCH https://api.pozy.ai/v1/accounts/{accountId}/products/{productId}
```

- Area: Commerce / Products
- Auth: Authorization: Bearer pz_live_...
- Deprecated

## Path parameters

- `accountId` (string, required)
- `productId` (string, required)

## Request body

Content type: `application/json`

- `title`, string
- `descriptionHtml`, string
- `handle`, string
- `vendor`, string
- `productType`, string
- `tags`, array of string
- `status`, string: One of `active`, `draft`, `archived`
- `seo`, object
  - `title`, string
  - `description`, string
- `variants`, array of object: At least 1 item. Up to 100 items
  - `id`, string, required: Matches `^\d+$`
  - `price`, number or string
  - `compareAtPrice`, number or string

## Example request

```bash
curl -X PATCH "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/products/659773d34b353e6821202f21" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Launch day",
  "descriptionHtml": "string",
  "handle": "acme",
  "vendor": "string"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/products/659773d34b353e6821202f21", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    title: "Launch day",
    descriptionHtml: "string",
    handle: "acme",
    vendor: "string"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.patch(
    "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/products/659773d34b353e6821202f21",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "title": "Launch day",
        "descriptionHtml": "string",
        "handle": "acme",
        "vendor": "string",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `platform`, string: One of `shopify`
- `product`, object
  - `id`, string
  - `platform`, string: One of `shopify`
  - `title`, string
  - `handle`, string
  - `descriptionHtml`, string: Can be null
  - `vendor`, string: Can be null
  - `productType`, string: Can be null
  - `tags`, array of string
  - `status`, string: One of `active`, `draft`, `archived`
  - `featuredImage`, object
    - one of: Product Image
      - `url`, string
      - `altText`, string: Can be null
  - `images`, array of object
    - `url`, string
    - `altText`, string: Can be null
  - `options`, array of object
    - `name`, string
    - `values`, array of string
  - `variants`, array of object
    - `id`, string
    - `title`, string
    - `sku`, string: Can be null
    - `barcode`, string: Can be null
    - `price`, string
    - `compareAtPrice`, string: Can be null
    - `inventoryQuantity`, integer: Can be null
    - `availableForSale`, boolean
    - `selectedOptions`, array of object
      - `name`, string
      - `value`, string
  - `seo`, object
    - `title`, string: Can be null
    - `description`, string: Can be null
  - `totalInventory`, integer: Can be null
  - `onlineStoreUrl`, string: Can be null
  - `createdAt`, string (date-time): Can be null
  - `updatedAt`, string (date-time): Can be null
  - `publishedAt`, string (date-time): Can be null

```json
{
  "platform": "shopify",
  "product": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "platform": "shopify",
    "title": "Launch day",
    "handle": "acme",
    "descriptionHtml": "string",
    "vendor": "string",
    "productType": "string",
    "tags": [
      "string"
    ],
    "status": "active",
    "featuredImage": {
      "url": "https://pozy.ai/media/example-1.jpg",
      "altText": "Hello from Pozy"
    },
    "images": [
      {
        "url": "https://pozy.ai/media/example-1.jpg",
        "altText": "Hello from Pozy"
      }
    ],
    "options": [
      {
        "name": "Acme",
        "values": [
          "string"
        ]
      }
    ],
    "variants": [
      {
        "id": "6bfebd43ddc270f6d2c56fc5",
        "title": "Launch day",
        "sku": "string",
        "barcode": "string",
        "price": "string",
        "compareAtPrice": "string",
        "inventoryQuantity": 1,
        "availableForSale": true,
        "selectedOptions": [
          {
            "name": "Acme",
            "value": "string"
          }
        ]
      }
    ],
    "seo": {
      "title": "Launch day",
      "description": "A short description"
    },
    "totalInventory": 42,
    "onlineStoreUrl": "https://pozy.ai/media/example-1.jpg",
    "createdAt": "2026-10-02T09:00:00.000Z",
    "updatedAt": "2026-10-02T09:00:00.000Z",
    "publishedAt": "2026-10-02T09:00:00.000Z"
  }
}
```
