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