---
title: "Edit a product"
method: PUT
path: "/v1/products/{id}"
---

# Edit a product

`PUT /v1/products/{id}`

## Request

- Base URL: `https://api.octapi.app`
- URL: `https://api.octapi.app/v1/products/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string, required
  - `description` string, nullable
  - `active` boolean
  - `variants` object[], required
    - `id` string, uuid
    - `sku` string, nullable
    - `title` string, nullable
    - `price` number, nullable
    - `currency` string, nullable
    - `barcode` string, nullable
    - `attributes` object, nullable

## Response `200`

Default Response

- unknown

---

[API](https://skmtc.dev/octapi/apis/octapi-api.md) · [All operations](https://skmtc.dev/octapi/apis/octapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/octapi/apis/octapi-api/revisions/580afda787d2?raw)
