Attributes
Attribute sets, groups and global catalog attributes — the structure that organizes how products receive information and how it shows up on the storefront.
Attribute structure
This section covers the attribute sets and groups structure as well as the catalog's global attributes. The separation allows reusing attributes across sets and isolating category-specific data.
Attribute Sets and Groups
Sets group attributes applicable to a product type. Groups organize attributes within a set for admin display.
Create a new Attribute Set from an existing skeleton.
{
"attribute_set_name": "Equipamentos Odontológicos",
"skeleton_set_id": 4
}
Create a group within an Attribute Set.
{
"attribute_set_id": 4,
"group_name": "Dados Técnicos"
}
Rename an attribute group.
{
"attribute_set_id": 4,
"group_name": "Dados Técnicos",
"new_group_name": "Informações Técnicas"
}
Global attributes
Reusable attributes across multiple sets. They support different types (text, select, etc.) and options like is_filterable, used_in_product_listing and apply_to.
Create a global text-type attribute.
{
"attribute_code": "codigo_fabricante",
"frontend_input": "text",
"frontend_label": "Manufacturer Code",
"is_global": 1,
"used_in_product_listing": 1,
"apply_to": ["simple", "configurable"]
}
Create a select attribute with options.
{
"attribute_code": "tipo_material",
"frontend_input": "select",
"frontend_label": "Material Type",
"options": [
{"admin": "Resina", "position": 0, "default": 1},
{"admin": "Cerâmica", "position": 1}
]
}
Update attribute settings or options.
{
"attribute_code": "tipo_material",
"is_required": 0,
"is_filterable": 0
}
Delete a global attribute.
{
"attribute_code": "tipo_material"
}