---
title: "Upsert a product variant"
method: PUT
path: "/unstable/product-variant"
tags: ["Product Variant"]
---

# Upsert a product variant

`PUT /unstable/product-variant`

## Request

- Base URL: `https://api.authentified.co`
- URL: `https://api.authentified.co/unstable/product-variant`
- Auth: API key in header `X-Authentified-API-Key`

Upsert a product variant

## Request body

- object
  - `id` string, required: The Unique Identifier of the product variant in your system
  - `productId` string, required: The Unique Identifier of the product this variant belongs to
  - `colour` string: Colour of the product
  - `size` string: Category of the product
  - `weight` number: Category of the product
  - `weightUnit` 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS': The status of the product
  - `createdAt` string, date-time: The date and time when the product variant was created in your system
  - `updatedAt` string, date-time: The date and time when the product variant was updated in your system

## Response `200`

Product variant updated successfully

- object: Product variant updated successfully
  - `id` string, required: The Unique Identifier of the product variant in your system
  - `productId` string, required: The Unique Identifier of the product this variant belongs to
  - `colour` string: Colour of the product
  - `size` string: Category of the product
  - `weight` number: Category of the product
  - `weightUnit` 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS': The status of the product
  - `createdAt` string, date-time: The date and time when the product variant was created in your system
  - `updatedAt` string, date-time: The date and time when the product variant was updated in your system

## Other responses

- `201`: Product variant created successfully
- `400`: Bad Request - Invalid parameters
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden - API key does not have access to this resource

---

[API](https://skmtc.dev/authentified/apis/authentified-rest-api.md) - [All operations](https://skmtc.dev/authentified/apis/authentified-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/authentified/apis/authentified-rest-api/revisions/1c72a50690bf?raw)
