cancel
Showing results for 
Search instead for 
Did you mean: 

How to add image to category via SOAP API???

How to add image to category via SOAP API???

Unless i'm missing something, there doesnt appear to be a way of adding an image to a category using the SOAP API?

 

You can GET an image thats already attached to a category, but no way of attaching to a new category!!

 

Am I indeed missing something???

 

Mike Smiley Happy

3 REPLIES 3

Re: How to add image to category via SOAP API???

Hello,

 

Yes, you're right.

May be you can duplicate the method http://www.magentocommerce.com/api/soap/catalog/catalogProductAttributeMedia/catalog_product_attribu... and adapt it for categories.

 

Anthony

Re: How to add image to category via SOAP API???

Hi,

 

And in version 2.2 of magento?

 

Thanks

Re: How to add image to category via SOAP API???

In magento 2 it is not possible without extending core functionality.

you can add the category image save/get support REST API using extension attributes:

First declare extension attribute of string type of class \Magento\Catalog\Api\Data\CategoryInterface

afterSave plugin for \Magento\Catalog\Api\CategoryRepositoryInterface:: to save image

afterLoad plugin for \Magento\Catalog\Api\CategoryRepositoryInterface:: to load image

More details here