> 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-item-deleted.md ## Introduction Triggered when a media item in a specified gallery is deleted. > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted. > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty. --- ## REST API ### Schema ``` Webhook: Gallery Item Deleted Description: Triggered when a media item in a specified gallery is deleted. > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted. > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty. 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: actionEvent | type: object | description: Custom action event details. - name: body | type: GalleryItemDeleted | description: The event body. - name: itemId | type: string | description: GUID of the deleted gallery item. ``` ### Examples ```curl { "id": "54ce2850-97fa-45d4-8100-78a8526b9534", "entityFqdn": "wix.pro_gallery.v2.gallery", "slug": "gallery_item_deleted", "entityId": "4937b26c-b9d3-4c43-b772-f1f3ba840b3d", "actionEvent": { "body": { "itemId": "5e8a7d5e-532f-4132-8b35-e6c5dd98f9e8" } }, "eventTime": "2021-12-16T12:36:29.316454Z", "triggeredByAnonymizeRequest": false, "originatedFrom": "Gallery Deleted" } ``` ---