Menu
Get Attribute Option By Code
Get an attribute option
GET
/api/rest/v1/attributes/{attribute_code}/options/{code}Use it in a workflow
- Add a step and choose the Akeneo connector.
- Pick the Get Attribute Option By Code action (under Attribute option).
- Fill in the fields below, then reference the result from later steps as
{{getAttributeOptionByCode.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getAttributeOptionByCode.response.data.<field>}}.
{
"code": "black",
"attribute": "a_simple_select",
"sort_order": 2,
"labels": {
"en_US": "Black",
"fr_FR": "Noir",
"de_DE": "Schwarz"
}
}
Need more? See the Akeneo guide for connection setup and behaviour shared by every action.
Was this page helpful?