# REST Resource: projects.locations.instances.webhooks

- [Resource: Webhook](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks#Webhook)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks#Webhook.SCHEMA_REPRESENTATION)
- [WebhookMapping](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks#WebhookMapping)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks#WebhookMapping.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks#METHODS_SUMMARY)

## Resource: Webhook

This service is available for customers who migrated SOAR to a customer managed project and have the Chronicle API enabled. Model represents the webhook definition.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "description": string, "environment": string, "enabled": boolean, "jsonExampleData": string, "webhookMapping": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks#WebhookMapping`) }, "postfix": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Guid of the webhook |
| `displayName` | `string` Required. Display name of the webhook. |
| `description` | `string` Required. Description of the webhook |
| `environment` | `string` Required. The default environment where the webhook will be ingested if no specific environment is provided. |
| `enabled` | `boolean` Required. Flag that indicates if the webhook is enabled or not. |
| `jsonExampleData` | `string` Optional. Json example data that will be used for mapping. |
| `webhookMapping` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks#WebhookMapping`)`` Optional. Mapping rules of the webhook. |
| `postfix` | `string` Optional. Postfix of the webhook. |

## WebhookMapping

Configuration mapping rules that holds for each field - a rule, a string format used to tell the backend where which field and how, to extract the value off the received webhook request when it will arrive.

| JSON representation |
|---|
| ``` { "webhookInstanceId": string, "ticketId": string, "sourceSystem": string, "mappingName": string, "deviceVendor": string, "ruleGenerator": string, "startTime": string, "environment": string, "description": string, "displayId": string, "reason": string, "deviceProduct": string, "endTime": string, "priority": string, "eventsList": string, "eventProduct": string, "event": string } ``` |

| Fields ||
|---|---|
| `webhookInstanceId` | `string` Optional. the webhook instance identifier, must be added for foreign key detection with the infra with the infra |
| `ticketId` | `string` Optional. Mapping rule of the ticket id field. |
| `sourceSystem` | `string` Required. Mapping rule of the source systemfield. |
| `mappingName` | `string` Optional. Mapping rule of the name field. |
| `deviceVendor` | `string` Required. Mapping rule of the device vendor field. |
| `ruleGenerator` | `string` Optional. Mapping rule of the rule generator field. |
| `startTime` | `string` Optional. Mapping rule of the start time field. |
| `environment` | `string` Optional. Mapping rule of the environment field. |
| `description` | `string` Optional. Mapping rule of the description field. |
| `displayId` | `string` Optional. Mapping rule of the display id field. |
| `reason` | `string` Optional. Mapping rule of the reason field. |
| `deviceProduct` | `string` Optional. Mapping rule of the device product field. |
| `endTime` | `string` Optional. Mapping rule of the end time field. |
| `priority` | `string` Optional. Mapping rule of the priority field. |
| `eventsList` | `string` Optional. Mapping rule of the events list field. |
| `eventProduct` | `string` Optional. Mapping rule of the event product field. |
| `event` | `string` Optional. Mapping rule of the event name field. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/WebhookIngestion` | Ingests data through a configured webhook. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/create` | Creates a new webhook configuration. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/delete` | Deletes a webhook configuration. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/exportLogs` | Exports the processing logs for a webhook. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/get` | Gets a specific webhook configuration. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/getLogs` | Retrieves processing logs for a given webhook. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/getStatistics` | Returns ingestion statistics for a specific webhook. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/list` | Lists webhooks configured for a specific instance. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/patch` | Updates an existing webhook configuration. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/revokeUrl` | Revokes the current URL for a specific webhook. |