dfvc Posted January 4, 2016 Share Posted January 4, 2016 Hi, I can successfully delete the whole product using this code: $webService->delete(array('resource' => 'products', 'id' => '11192')); But I just want to delete the product images and keep the rest of information. I've tryed this way but it doesn't work: $webService->delete(array('resource' => 'images/products', 'id' => '11192')); It runs without errors/warnings but don't delete the picture. Can anyone help me? Tanks in advance. Link to comment Share on other sites More sharing options...
gamdev Posted March 8, 2016 Share Posted March 8, 2016 you got it solved? I'm in the same situation Link to comment Share on other sites More sharing options...
ElPepito Posted April 4, 2016 Share Posted April 4, 2016 Same, any help will be appreciated. Link to comment Share on other sites More sharing options...
Sterk Posted October 23, 2019 Share Posted October 23, 2019 same problem, any solution ? Link to comment Share on other sites More sharing options...
tobiaseriksson Posted March 15, 2020 Share Posted March 15, 2020 (edited) The correct answer is this Operation: HTTP DELETE URL : www.shop.com/api/images/products/<product-id>/<image-id> If you are using the webservice API then resource = "images/products/<product-id>" id = <image-id> i.e. $webService->delete(array('resource' => 'images/products/<product-id>', 'id' => '<image-id>')); Edited March 15, 2020 by tobiaseriksson (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now