This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a media item in a specified gallery.
The createGalleryItem()
function returns a Promise that resolves to a newly-created gallery item after it has successfully been created.
Important:
When creating image
items in your gallery, the images must be uploaded to the Wix Media Manager first as the imageInfo
parameter currently only supports the Wix media URL.
This function is restricted and only runs if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Gallery ID.
Media item to create.