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.
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.