{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Webhook",
  "title": "Webhook",
  "additionalProperties": false,
  "description": "A webhook.",
  "properties": {
    "events": {
      "description": "The Jira events that trigger the webhook.",
      "items": {
        "enum": [
          "jira:issue_created",
          "jira:issue_updated",
          "jira:issue_deleted",
          "comment_created",
          "comment_updated",
          "comment_deleted",
          "issue_property_set",
          "issue_property_deleted"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "expirationDate": {
      "description": "The date after which the webhook is no longer sent. Use [Extend webhook life](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-webhooks/#api-rest-api-3-webhook-refresh-put) to extend the date.",
      "format": "int64",
      "readOnly": true,
      "type": "integer"
    },
    "fieldIdsFilter": {
      "description": "A list of field IDs. When the issue changelog contains any of the fields, the webhook `jira:issue_updated` is sent. If this parameter is not present, the app is notified about all field updates.",
      "items": {
        "description": "A list of field IDs. When the issue changelog contains any of the fields, the webhook <code>jira:issue_updated</code> is sent. If this parameter is not present, the app is notified about all field updates.",
        "type": "string"
      },
      "type": "array"
    },
    "id": {
      "description": "The ID of the webhook.",
      "format": "int64",
      "type": "integer"
    },
    "issuePropertyKeysFilter": {
      "description": "A list of issue property keys. A change of those issue properties triggers the `issue_property_set` or `issue_property_deleted` webhooks. If this parameter is not present, the app is notified about all issue property updates.",
      "items": {
        "description": "A list of issue property keys. A change of those issue properties triggers the <code>issue_property_set</code> or <code>issue_property_deleted</code> webhooks. If this parameter is not present, the app is notified about all issue property updates.",
        "type": "string"
      },
      "type": "array"
    },
    "jqlFilter": {
      "description": "The JQL filter that specifies which issues the webhook is sent for.",
      "type": "string"
    }
  },
  "required": [
    "events",
    "id",
    "jqlFilter"
  ],
  "type": "object"
}