* * __Important:__ * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL. * ** @public * @documentationMaturity preview * @requiredField options.gallery.items.image.imageInfo * @requiredField options.gallery.items.text.html * @requiredField options.gallery.items.video.videoInfo * @param options - Options to use when creating the gallery. * @permissionScope Manage Galleries * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES * @applicableIdentity APP * @adminMethod * @returns Created gallery. */ function createGallery(options?: CreateGalleryOptions): Promise
* * __Important:__ * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL. * ** @public * @documentationMaturity preview * @requiredField _id * @requiredField gallery * @requiredField gallery.items.image.imageInfo * @requiredField gallery.items.text.html * @requiredField gallery.items.video.videoInfo * @param _id - ID of the gallery to update. * @param gallery - The information for the gallery being updated. * @permissionScope Manage Galleries * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES * @applicableIdentity APP * @adminMethod * @returns Updated gallery. */ function updateGallery(_id: string | null, gallery: UpdateGallery, options?: UpdateGalleryOptions): Promise
* * __Important:__ * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL. * ** * #### Override permissions * This function is restricted and only runs if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function. *
** @param galleryId - Gallery ID. * @param item - Media item to create. * @public * @documentationMaturity preview * @requiredField galleryId * @requiredField item * @requiredField item.image.imageInfo * @requiredField item.text.html * @requiredField item.video.videoInfo * @permissionScope Manage Galleries * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES * @applicableIdentity APP * @adminMethod * @returns Created media item. */ function createGalleryItem(galleryId: string, item: Item, options?: CreateGalleryItemOptions): PromiseWarning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.
*
* * __Important:__ * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL. * ** @public * @documentationMaturity preview * @requiredField identifiers * @requiredField identifiers.galleryId * @requiredField identifiers.itemId * @requiredField item * @requiredField item.image.imageInfo * @requiredField item.text.html * @requiredField item.video.videoInfo * @param item - The information for the gallery item being updated. * @param identifiers - Gallery ID and Item ID. * @permissionScope Manage Galleries * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES * @applicableIdentity APP * @adminMethod * @returns Updated media item. */ function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem, options?: UpdateGalleryItemOptions): Promise