Cyber Monday & Friday 40% Deals Return Coupon code: Friday2025

Hi,

we are facing some problems adding images using the REST API.

This is the payload we pass to the url: /wp-json/wc/v3/products/169/variations

{
  "regular_price": "0",
  "woo_variation_gallery_images": [
    {
      "id": 49
    },
    {
      "id": 71
    }
  ],"attributes": [
    {
      "id": 4,
      "option": "BMW"
    }
  ]
}
But the images (that exist on the media library) are not saved and we get as result an ampty array: “woo_variation_gallery_images”: []
what are we doing wrong?
Regards

Tanvirul Haque

Yes, we are working on this. If you need further information please let us not.

Thanks