Jump to content

How To Use The Api To Add Several Category Images


Recommended Posts

In the admin GUI you can add several images for a category, as for image types category_default and medium_default.

 

The api call: 

/api/images/categories/2261 gives me the original saved image when I GET, and I can update it with the same url using POST and ps_method=PUT. That also sets the other image sizes automatically.

 

I then try to:

/api/images/categories/2261/category_default - this gives me a correct image with GET, but when I try to update it with POST (with or without the ?ps_method=PUT) there is no change, I can't set this image size, I want it to be set to another image like you can for any category in the admin GUI.

 

I get no errors doing a POST to /api/images/categories/2261/category_default, it just doesn't change the image at all.

 

Any ideas?

 

 

Regards,

Erik Knudsen

Edited by eriknuds (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...