문제

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.

도움이 되었습니까?

해결책

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);

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top