v1
latestSwagger 2.02026-07-13137761.0 MBFamily variant
Update/create several family variants
This endpoint allows you to update and/or create several family variants at once, for a given family.
patch/api/rest/v1/families/{family_code}/variants
Path parameters
family_codestring required
Code of the family
Request body
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
OK