Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

How to update and override product image via RESTful API?

$
0
0

Replies: 0

Hello!

I am using the RESTful API to update (automated) periodically hundred of products. Therefor I use the products/<id> endpoint: https://woocommerce.github.io/woocommerce-rest-api-docs/#update-a-product

This works pretty fine but I found now out that
*woocommerce uploads a new image every time when a product update is done,
*the old image of the product remains in the wp-uploads folder,
*my webspace reaches its maximum after a while and
*this happens even if the referenced image is exactly the same, than before.

I will try out a cleanup plug-in to get over this issue. Nevertheless I would like to ask:

How to update/override product image via RESTful API?


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>