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.

Admin Method

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Stores - all permissions
Manage Products
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
_idstringRequired

Product ID.


mediaArray<MediaDataForWrite>Required

Sources of media items already uploaded to the Wix site.

Was this helpful?
Yes
No