---
title: "Tworzy wariant produktu"
method: POST
path: "/products_variants"
tags: ["Produkty - Warianty"]
---

# Tworzy wariant produktu

`POST /products_variants`

Tworzenie nowego wariantu w produkcie

## Request body

- ProductVariant
  - `catalog` string
  - `ean` string
  - `price` unknown
  - `price_promo` unknown
  - `pricesfieldsvalues` object[] — Wartości pól cenowych
    - `pricesfield_id` integer — Identyfikator pola cenowego
    - `value` number — Wartość pola
  - `product_id` integer
  - `promotion` integer
  - `quantity` integer
  - `status` integer
  - `variants_properties` VariantsPropertiesObject[]
    - `variants_property_id` integer
  - `weight` unknown

## Response `200`

Sukces

- object
  - `product_variant_id` integer

## Other responses

- `401` — Błąd autoryzacji

---

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