---
title: "Update a product"
method: PATCH
path: "/products/{id}"
tags: ["Reference Data"]
---

# Update a product

`PATCH /products/{id}`

Updates an existing product. Only provided fields will be updated. Custom field values use `cf_*` keys — see the [Custom fields](/api-v2/custom-fields) guide.

## Path parameters

- `id` string, required

## Request body

- ProductUpdateInput
  - `name` string — Product name
  - `type` 'PRODUCT' | 'SERVICE' — Product type
  - `price` number — Product price
  - `description` string, nullable — Product description
  - `sku` string, nullable — SKU code
  - `buyPrice` number, nullable — Cost/buy price
  - `isActive` boolean — Whether the product is active

## Response `200`

OK

- Product
  - `id` string, required — Product ID
  - `name` string, required — Product name
  - `price` number, required — Product price
  - `description` string, nullable — Product description
  - `sku` string, nullable — SKU code
  - `type` string, required — Product type (PRODUCT or SERVICE)
  - `isActive` boolean, required — Whether the product is active

## Other responses

- `400` — Validation error or bad request
- `401` — Missing or invalid API key
- `403` — Insufficient permission
- `404` — Resource not found
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/heffl/apis/heffl-api-v2-beta.md) · [All operations](https://skmtc.net/heffl/apis/heffl-api-v2-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/heffl/heffl-api-v2-beta/versions/27006cfef4d8/schema)
