---
title: "Products data update."
method: PUT
path: "/rest/api/warehouse/product/"
tags: ["Warehouse"]
---

# Products data update.

`PUT /rest/api/warehouse/product/`

Uwaga: Pole groupName jest deprecated i zostanie usunięte w przyszłości, Zamiast niego należy używać pola name, ponieważ obecnie obsługuje ono oba wymagania dotyczące nazewnictwa produktów.

## Request body

- ProductPut[]
  - `id` integer, required
  - `sku` string, required
  - `name` string
  - `tax` string, required
  - `status` 0 | 1, required
  - `originalCode` string
  - `groupName` string
  - `attributes` string[] — Array of attribute ID. Deprecated: Please use dedicated endpoint for product attributes instead.
  - `images` string[] — Array of UUID uploaded media via Attachment endpoint or associative array of image URL - key attribute is reference
  - `categories` integer[] — Array of category ID
  - `ean` string
  - `quantity` integer, required
  - `priceWithTax` string, required
  - `weight` number, float
  - `unit` string
  - `description` string — Long product description
  - `shortDescription` string — Short product description, max 256 characters
  - `location` string, nullable — Location code

## Response `200`

Update product correctly

- unknown

## Other responses

- `304` — No updates
- `400` — Invalid payload
- `401` — Authorization failed
- `413` — Too many Product objects submitted (max 128)
- `422` — Validation error

---

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