conneqt/m2-auto-create-attributes

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

2.2.0 2024-10-03 12:33 UTC

This package is auto-updated.

Last update: 2024-11-03 12:53:45 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"
                    }
                ]
            }
        }
    }
}