{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-update-webhook-request-schema.json",
  "title": "UpdateWebhookRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revolut-webhooks-v2-api-openapi.yml#/components/schemas/UpdateWebhookRequest",
  "type": "object",
  "properties": {
    "url": {
      "$ref": "#/$defs/Url",
      "description": "A valid webhook URL to which to send event notifications. The supported protocol is `https`."
    },
    "events": {
      "description": "A list of event types to subscribe to.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookEventType"
      }
    }
  },
  "$defs": {
    "Url": {
      "description": "A valid webhook URL to which to send event notifications. The supported protocol is `https`.",
      "type": "string",
      "format": "uri"
    },
    "WebhookEventType": {
      "enum": [
        "TransactionCreated",
        "TransactionStateChanged",
        "PayoutLinkCreated",
        "PayoutLinkStateChanged"
      ],
      "description": "The type of the webhook event to subscribe to."
    }
  }
}