How to set a new color to Color Attribute using Rest API
-
14-04-2021 - |
Frage
Hey i'm begginer at Magento 2 and i want to set a new color type to the Color Attribute using REST API. Is it possible? I know this can be done using the admin menu, but i would like to do this using REST API.
Lösung
Here is link for magento rest API : https://devdocs.magento.com/swagger/#/ .
And you can add color options by this api /V1/products/attributes/{attributeCode}/options
POST. Instance is Magento\Catalog\Model\Product\Attribute\OptionManagement-> add($attributeCode, $option);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange