---
title: "Create a new family variant"
method: POST
path: "/api/rest/v1/families/{family_code}/variants"
tags: ["Family"]
---

# Create a new family variant

`POST /api/rest/v1/families/{family_code}/variants`

## Request

- Base URL: `http://demo.akeneo.com`
- URL: `http://demo.akeneo.com/api/rest/v1/families/{family_code}/variants`
- Auth: none declared

This endpoint allows you to create a family variant.

## Path parameters

- `family_code` string, required

## Request body

- object
  - `code` string, required: Family variant code
  - `variant_attribute_sets` object[], required: Attributes distribution according to the enrichment level
    - `level` integer, required: Enrichment level
    - `axes` string[], required: Codes of attributes used as variant axes
    - `attributes` string[]: Codes of attributes bind to this enrichment level
  - `labels` object: Family variant labels for each locale
    - `localeCode` string: Family variant label for the locale `localeCode`

## Response `201`

Created

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Access forbidden
- `415`: Unsupported Media type
- `422`: Unprocessable entity

---

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