> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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

# Webhook Permissions Scopes IDs:
Read Galleries: SCOPE.DC-PROGALLERY.READ-GALLERIES

## 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"
}

```

---