Menu
Patch Family Variant By Code
Update/create a family variant
PATCH
/api/rest/v1/families/{family_code}/variants/{code}Use it in a workflow
- Add a step and choose the Akeneo connector.
- Pick the Patch Family Variant By Code action (under Family variant).
- Fill in the fields below, then reference the result from later steps as
{{patchFamilyVariantByCode.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"variant_attribute_sets": [
{
"level": 1,
"attributes": [
"color",
"material"
],
"axes": [
"color"
]
},
{
"level": 2,
"attributes": [
"sku",
"size"
],
"axes": [
"size"
]
}
],
"code": "shoesVariant",
"labels": {
"en_US": "Shoes variant",
"fr_FR": "Variante de chaussures"
}
}
Response
Returns 201 with a any. Read it in later steps with {{patchFamilyVariantByCode.response.data.<field>}}.
Need more? See the Akeneo guide for connection setup and behaviour shared by every action.
Was this page helpful?