fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Add Video to product using Rest API

I need to add videos to products (both simple and variants) via REST api. Is there a way to do this?

I see the video source (video_src) settings in the woo_variation_gallery_images  when querying the /wp-json/wc/v3/products/{product_ID}/variations/ endpoint but I’m not sure how I can edit those settings via the API.

Also, I do not see any such meta data info for a simple product.

Golam Kibria

Hi Frederick,

Unfortunately, this feature is not currently available.

Please add a feature request here: https://storepress.fider.io/

Thank You

I think i figured it out.

I created my own endpoint to set the woo_variation_gallery_media_video meta on the media to make it a video. This covers a simple product. Now I just need to set the meta field on the varation with the ids of the media I want.

Golam Kibria

Hi Frederick,

I hope that you are doing great.

Hopefully, you have been able to successfully implement this by now.

If you need assistance with anything else, please let us know.

Thank you