Rest API rename media

After much digging, it doesn’t seem to be possible. I did craft some automation with a Node script that basically does this:

  • Check if the name is correct.
  • If it’s not, then download the image, upload with a new name and update the product. If everything goes smooth, delete the original image.
  • Same is repeated for every variation the product might have.

It’s a bit cumbersome but effective.

Leave a Comment