Add Product images through Admin API

Look at the code everything is there

Step 2:

$url = $this->baseUrl . ‘/api/v1/_action/media/’ . $mediaId . ‘/upload?extension=’ . $image[1] . ‘&fileName=’ . $image[0];
                    $response = $this->postData($url, $data);