I am having trouble attaching uploaded media to wix v3 catalog product
For v1 catalog product I was able to do this
- to upload media
$mediaType = ‘VIDEO’;
$apiUrl = ‘/site-media/v1/files/import’;
$params = [‘url’ => $fileUrl,‘mediaType’ => ‘VIDEO’,‘displayName’ => $fileName]; - to attach media to product
$apiUrl = “stores/v1/products/$shopProductId/media”;
$params = [‘media’ => [[‘mediaId’ => $fileId]]];
I am looking for similar option to attach media to product for v3 catalog product
this below api to update v3 catalog product does not exactly explain how
pls help as this is urgent