addProductMedia( )


Adds media items to a specified product, either via URL or existing media ID.

NOTE: The URL is not validated and no event is triggered to indicate if the media was added successfully.

Permissions
Manage Stores - all permissions
Manage Products
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
_idstringRequired

Product ID.


mediaArray<MediaDataForWrite>Required

Sources of media items already uploaded to the Wix site.

Did this help?