conneqt/m2-auto-create-attributes

Conneqt Module for Magento 2 which automatically creates and fills in attributes and attribute sets via api

2.3.0 2024-11-27 10:00 UTC

README

How to install

composer require conneqt/m2-auto-create-attributes

How to use

When creating a product update call via the API, add the attributes via extension_attributes -> custom_conneqt_attributes like below

{
    "product": {
        "sku": "312.ABC",
        "extension_attributes": {
            "custom_conneqt_attributes":  [
                {
                    "attribute_type": "select",
                    "attribute_code": "string",
                    "value": "string"
                }
            ]
        }
    }
}

It's also possible to use this module to manage attribute groups, if you want to use this you can use it as following example:

{
    "product": {
        "sku": "312.ABC",
        "extension_attributes": {
            "custom_conneqt_attribute_set": {
                "attribute_set_name": "ABC123",
                "auto_create": false,
                "attributes": [
                    {
                        "attribute_code": "string",
                        "attribute_group_name": "general"
                    },
                    {
                        "attribute_code": "string2"
                    }
                ]
            }
        }
    }
}