v1

latestSwagger 2.02026-07-13137761.0 MB
Family

Create a new family variant

This endpoint allows you to create a family variant.

post/api/rest/v1/families/{family_code}/variants

Path parameters

family_codestring required

Code of the family

Request body

codestring required

Family variant code

Example request

{
  "code": "shoesVariant",
  "labels": {
    "en_US": "Shoes variant",
    "fr_FR": "Variante de chaussures"
  },
  "variant_attribute_sets": [
    {
      "level": 1,
      "attributes": [
        "color",
        "material"
      ],
      "axes": [
        "color"
      ]
    },
    {
      "level": 2,
      "attributes": [
        "sku",
        "size"
      ],
      "axes": [
        "size"
      ]
    }
  ]
}

Response

Created