{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/predoc/json-schema/predoc-webhook-configuration-update-inp-dto-schema.json",
  "title": "WebhookConfigurationUpdateInpDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/predoc-events-api-openapi.yml#/components/schemas/WebhookConfigurationUpdateInpDto",
  "type": "object",
  "properties": {
    "serviceName": {
      "type": "string",
      "description": "The service name to subscribe to"
    },
    "notificationEmail": {
      "type": "string",
      "description": "The email to send a notification to if/when the amount of sending retries exceeded"
    },
    "webhookUri": {
      "type": "string",
      "description": "The webhook URI to subscribe to"
    },
    "isActive": {
      "type": "boolean",
      "description": "Whether the webhook is active"
    },
    "customHeaders": {
      "description": "Optional custom headers appended to webhook deliveries",
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookCustomHeaderDto"
      }
    }
  },
  "required": [
    "serviceName",
    "notificationEmail",
    "webhookUri",
    "isActive"
  ],
  "$defs": {
    "WebhookCustomHeaderDto": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Header name that will be sent with webhook requests",
          "minLength": 1,
          "maxLength": 100
        },
        "value": {
          "type": "string",
          "description": "Header value that will be sent with webhook requests",
          "minLength": 1,
          "maxLength": 4000
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}