This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a new gallery.
Note: When you create a new gallery with Create Gallery, the newly-created gallery is available only on a site's backend and doesn't appear on the live site. To display a backend gallery on a live site, the site owner needs to connect it manually to a gallery component. To learn more about how a site owner can do this using Velo, see Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API.
You can create an entirely new gallery, or clone an existing gallery using the cloneFromGalleryId
parameter.
When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery IDs, item IDs, sort order, and created and updated dates.
You can only call this method when authenticated as a Wix app or Wix user identity.