{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lune/json-schema/lune-update-webhook-request-schema.json",
  "title": "UpdateWebhookRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lune-webhooks-api-openapi.yml#/components/schemas/UpdateWebhookRequest",
  "type": "object",
  "required": [
    "url",
    "enabled"
  ],
  "properties": {
    "url": {
      "$ref": "#/$defs/Url"
    },
    "enabled": {
      "description": "Determines if events should be sent to the webhook or not. Defaults to `true` for newly created\nwebhooks. When updating a webhook and the value is not explicitly specified the existing value\nwill be used.\n",
      "type": "boolean"
    },
    "account_ids": {
      "description": "The updated webhook will exclusively push events which belong to the given account identifiers.\n\nIf not set, the previous account identifiers filter remains unchanged.\n",
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "description": "An account's unique identifier"
      }
    }
  },
  "$defs": {
    "Url": {
      "type": "string",
      "format": "https-url",
      "description": "An HTTPS URL.\n\nThe URL must match the following regular expression: `^https:\\/\\/[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&\\/\\/=]*)$`\n"
    }
  }
}