---
title: "Create Variant"
method: POST
path: "/api/v1/products/variants"
tags: ["Products"]
---

# Create Variant

`POST /api/v1/products/variants`

## Request

- Base URL: `https://api.compteam.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.compteam.io/api/v1/products/variants`
- Auth: HTTP bearer

## Request body

- VariantCreate
  - `product_id` string, uuid, required
  - `size` string, nullable
  - `color` string, nullable
  - `sku` string, nullable
  - `stock_count` integer, nullable
  - `price_override` union
    - number
    - string
  - `allow_backorder` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/compteam/apis/c-team-api.md) · [All operations](https://skmtc.dev/compteam/apis/c-team-api/llms.txt) · [OpenAPI document](https://skmtc.dev/compteam/apis/c-team-api/revisions/4bd27c892655?raw)
