---
title: "Update a product"
method: PUT
path: "/v1/products/{id}"
tags: ["products"]
---

# Update a product

`PUT /v1/products/{id}`

## Path parameters

- `id` integer, required

## Request body

- HttpUpdateProductRequest
  - `code_internal` string, required
  - `image_url` string
  - `is_unique` 0 | 1
  - `min_quantity` integer, required
  - `name` string, required
  - `return_url` string
  - `state` 1 | 2, required
  - `type` 1 | 2 | 3 | 4, required
  - `type_owner` 1 | 2

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/earnation/apis/earnation-api.md) · [All operations](https://skmtc.dev/earnation/apis/earnation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/earnation/earnation-api/revisions/1219d1bf2177/schema)
