---
title: "Partially update a product (PATCH)"
method: PATCH
path: "/api/v1/products/{id}"
tags: ["Products"]
---

# Partially update a product (PATCH)

`PATCH /api/v1/products/{id}`

Send only the fields you want to change. Omitted fields are left as-is.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `description` string
  - `stock` integer
  - `category` string

## Response `200`

Default Response

- object
  - `success` boolean
  - `data` object
    - `id` string, uuid
    - `name` string
    - `price` number
    - `description` string
    - `stock` integer
    - `category` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400` — Validation failed
- `404` — Record not found

---

[API](https://skmtc.net/totalshiftleft/apis/api-learning-sandbox.md) · [All operations](https://skmtc.net/totalshiftleft/apis/api-learning-sandbox/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/totalshiftleft/api-learning-sandbox/revisions/3b3179c504b0/schema)
