cancel
Showing results for 
Search instead for 
Did you mean: 

Api interface for product swatches

Api interface for product swatches

Feature request from paales, posted on GitHub Jun 21, 2016

Currently using 2.1-rc3.

There is no API available for product option swatches. It makes sense if we are able to use the ProductAttributeOptionManagementInterface to add new swatch texts to products.

Maybe to have better separation of concerns we could have a ProductAttributeOptionSwatchManagementInterface to add swatch information to an existing option.

5 Comments
nikunjhk
Regular Visitor

Any update or progress on this?

mkotov
Adobe Team

@nikunjhk can you explain or give an example of what you're trying to do? 

You should be able to use catalogProductAttributeOptionManagementV1 to create new product attribute options, even when the attribute is a swatch type. 

You can also use this as a input/output reference: https://devdocs.magento.com/swagger/

nikunjhk
Regular Visitor

@mkotov I'm trying to get swatches data (image/color code) through API to use in another system. Currently what I get is only label and value as described in https://magento.stackexchange.com/questions/214944/how-can-i-get-the-hex-code-in-visual-swatch-via-r....

 

I don't want to change the label to hex code, mainly as I would need images too (most of my cases use image)

mkotov
Adobe Team

Thanks for clarifying. I understand the use case and agree this would be a nice feature to add to our APIs. 

travis_vliegen
Senior Member

@mkotov Is this API for product visual swatches still being considered? I find myself in a similiar position where this API would be useful.