v1
latestSwagger 2.02026-07-13137761.0 MBReference entity attribute
Update/create an attribute of a given reference entity
This endpoint allows you to update a given attribute for a given renference entity. Note that if the attribute does not already exist for the given reference entity, it creates it.
patch/api/rest/v1/reference-entities/{reference_entity_code}/attributes/{code}
Path parameters
reference_entity_codestring required
Code of the reference entity
codestring required
Code of the resource
Request body
Example request
{
"code": "description",
"labels": {
"en_US": "Description",
"fr_FR": "Description"
},
"type": "text",
"value_per_locale": true,
"value_per_channel": false,
"is_required_for_completeness": true,
"max_characters": null,
"is_textarea": true,
"is_rich_text_editor": true,
"validation_rule": "none",
"validation_regexp": null
}Response
Created