Menu
Patch Reference Entity Attribute By Code
Update/create an attribute of a given reference entity
PATCH
/api/rest/v1/reference-entities/{reference_entity_code}/attributes/{code}Use it in a workflow
- Add a step and choose the Akeneo connector.
- Pick the Patch Reference Entity Attribute By Code action (under Reference entity attribute).
- Fill in the fields below, then reference the result from later steps as
{{patchReferenceEntityAttributeByCode.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"code": "description",
"labels": {
"en_US": "The description",
"fr_FR": "La description"
},
"type": "text",
"value_per_locale": true,
"value_per_channel": false,
"is_required_for_completeness": true,
"max_characters": 255,
"is_textarea": true,
"is_rich_text_editor": true,
"validation_rule": "none",
"validation_regexp": null,
"allowed_extensions": [
"png",
"jpg"
]
}
Response
Returns 201 with a any. Read it in later steps with {{patchReferenceEntityAttributeByCode.response.data.<field>}}.
Need more? See the Akeneo guide for connection setup and behaviour shared by every action.
Was this page helpful?