> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Package: proGallery # Webhook link: https://dev.wix.com/docs/api-reference/assets/pro-gallery/gallery-updated.md ## Introduction Triggered when a gallery is updated. > __Note:__ The event data doesn't include gallery items or their IDs. > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). --- ## REST API ### Schema ``` Webhook: Gallery Updated Description: Triggered when a gallery is updated. > __Note:__ The event data doesn't include gallery items or their GUIDs. > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). Event body: - name: id | type: string | description: Unique event ID. Allows clients to ignore duplicate events. - name: entityFqdn | type: string | description: Fully qualified domain name of the entity associated with the event. - name: slug | type: string | description: Event name. - name: entityId | type: string | description: ID of the entity associated with the event. - name: eventTime | type: string (date-time) | description: Event timestamp. - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application such as GDPR. - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event. - name: updatedEvent | type: object | description: Updated event details. - name: currentEntity | type: Gallery | description: The entity after the update. - name: id | type: string | description: Gallery GUID. - name: name | type: string | description: Gallery name. - name: totalItems | type: integer | description: Total number of items in the gallery. - name: items | type: array | description: Media items in the gallery. - ONE-OF: - name: image | type: Image | description: Details about the image. - name: imageInfo | type: Image | description: Information about the Wix Media image. - name: id | type: string | description: *Required.** WixMedia image GUID. - name: url | type: string | description: Image URL. - name: height | type: integer | description: *Required.** Original image height. - name: width | type: integer | description: *Required.** Original image width. - name: altText | type: string | description: Image alt text. - name: filename | type: string | description: Image filename. - name: focalPoint | type: Point | description: Focal point of the image. - name: x | type: number | description: X-coordinate of the focal point. - name: y | type: number | description: Y-coordinate of the focal point. - name: exif | type: object | description: Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). - name: quality | type: integer | description: Image compression level.
Min: `30`
Max: `100` - name: unsharpMasking | type: UnsharpMasking | description: [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. - name: amount | type: | description: Unsharp masking amount. Controls the sharpening strength.
Min: `0`
Max: `5` - name: radius | type: | description: Unsharp masking radius in pixels. Controls the sharpening width. - name: threshold | type: | description: Unsharp masking threshold. Controls how different neighboring pixels must be for sharpening to apply.
Min: `0`
Max: `1` - name: video | type: Video | description: Details about the video. - name: type | type: VideoType | description: Type of video. - enum: UNDEFINED, WIX_MEDIA, YOUTUBE, VIMEO - name: videoInfo | type: VideoV2 | description: Information about the video. - name: id | type: string | description: WixMedia GUID. Required when associating an existing Wix Media video. - name: url | type: string | description: Video URL. Required when associating a video from an external source. Supported sources: YouTube, Vimeo. - name: resolutions | type: array | description: Available resolutions for the video, starting with the optimal resolution. - name: url | type: string | description: *Required.** Video URL. - name: height | type: integer | description: *Required.** Video height. - name: width | type: integer | description: *Required.** Video width. - name: format | type: string | description: *Required.** Video format. For example, `mp4` or `hls`. - name: quality | type: string | description: Video quality. For example, `480p` or `720p`. - name: filename | type: string | description: Video filename. - name: filename | type: string | description: Video filename. - name: posters | type: array | description: Video posters. - name: durationInMillis | type: integer | description: Manually defined video duration in milliseconds. - name: text | type: Text | description: Details about the text file. - name: html | type: string | description: Text in HTML format. - name: css | type: object | description: Set of key-value pairs describing the [CSS style](https://en.wikipedia.org/wiki/CSS) of the text. __Note:__ The object structure is customizable. See the [List Gallery Items](https://dev.wix.com/api/rest/site-content/pro-gallery/list-gallery-items) code example for supported values. - name: editorHtml | type: string | description: Reserved for internal use. - name: editorFontId | type: string | description: Reserved for internal use. - name: id | type: string | description: Item GUID. - name: sortOrder | type: number | description: Index that determines which position a media item is displayed in the gallery.
Default: [Epoch](https://www.epoch101.com/) timestamp.
>**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails. - name: title | type: string | description: Item title. - name: description | type: string | description: Item description. - name: link | type: Link | description: Link from the item. You can link to Wix sites or external URLs. - name: text | type: string | description: Display text of the link. - name: url | type: string | description: Target URL of the link. - name: type | type: Type | description: Type of item. - enum: UNDEFINED, IMAGE, VIDEO, TEXT - name: createdDate | type: string | description: Date and time the item was created. - name: updatedDate | type: string | description: Date and time the item was last updated. - name: tags | type: Tags | description: Item tags. - name: values | type: array | description: List of tags assigned to the media item. - name: sortOrder | type: number | description: Index that determines which position a gallery is displayed on the site.
>**Note:** If you assign the same sort order index to more than one gallery, the function fails. - name: createdDate | type: string | description: Date and time the gallery was created. ``` ### Examples ```curl { "id": "a76ec8a5-981d-44b5-b77a-8cef109ea6d4", "entityFqdn": "wix.pro_gallery.v2.gallery", "slug": "updated", "entityId": "73cbf7b0-8c45-4b17-972b-31741af61064", "updatedEvent": { "currentEntity": { "id": "73cbf7b0-8c45-4b17-972b-31741af61064", "name": "gallery", "totalItems": 12, "items": [], "createdDate": "2021-12-16T11:41:11Z" } }, "eventTime": "2021-12-16T11:41:11.610931Z", "triggeredByAnonymizeRequest": false } ``` ---