CMS Mastering Development Wordpress

Woocommerce api: create product with images – bad request

I am trying to create a product with images via the Woocommerce Rest API but I get bad request: Here is how I am preparing the images array: //IMAGES $images = []; //Get the featured image $featured_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post_id)); //and push it in the images array with position = 0 (featured) array_push($images, [‘src’ => […]