---
title: "Create a Variant Attribute"
method: POST
path: "/variant_attributes"
tags: ["Variant Attributes"]
---

# Create a Variant Attribute

`POST /variant_attributes`

Variant Attributes are required when creating variants. They are used to specify what properties make a particular SKU different to another. e.g. You may
have an attribute 'Size' that lets you differentiate variants based on their size.

🔒 Requires: `products:write` scope

## Request body

- VariantAttributeCreateUpdateBody
  - `name` string, required

## Response `201`

The created variant attribute.

- VariantAttributeCreateResponse
  - `data` object
    - `created_at` string — Timestamp in UTC.
    - `id` string
    - `name` string
    - `updated_at` string — Timestamp in UTC.

## Other responses

- `422` — Error response. Failed to process variant attribute.

---

[API](https://skmtc.net/lightspeedhq/apis/api-2026-07.md) · [All operations](https://skmtc.net/lightspeedhq/apis/api-2026-07/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightspeedhq/api-2026-07/revisions/72d4ceb46dbb/schema)
