Adds media items to a specified product, either via URL or existing media ID.
You can only call this method when authenticated as a Wix app or Wix user identity.
Product ID.
Sources of media items already uploaded to the Wix site.
curl -X POST \
'https://www.wixapis.com/stores/v1/products/1044e7e4-37d1-0705-c5b3-623baae212fd/media' \
--data-binary '{
"media": [
{
"mediaId": "9cc22d8b8d5244aba9ed73fb1783fc26.jpg"
},
{
"url": "https://your-site-url/image.jpeg",
"choice": {
"option": "Color",
"choice": "Blue"
}
},
{
"mediaId": "11062b_382eeb350464462c8f9150e4d3e40f2b"
}
]
}' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>'
{}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.