Jump to content

How to delete images of a product with webservice


ben240374
 Share

Recommended Posts

Hello,

I'm trying to delete images of a product by webservice but I get error "61 : This image does not exist on disk".

I'm on C# development.

I do a "GetAsync" with this URL : "api/images/products/" + idProduct

 I have a IsSuccessStatusCode = false

And then the error has Code = 61 and message : "This image does not exist on disk".

Does someone can help me ?

 

Thanks,

Ben

 

 

Share this post


Link to post
Share on other sites

Hi Daniel,

Thanks for your answer but..
If I know the image Id, I can delete image without problem.

I need to know all images ID of the product and when I ask to get all images ID, I receive an error "This image does not exist on disk" code error 61.

Url is like "api/images/products/"+productID and I do a GetAsync

An idea ?

Thanks,

 

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More