{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blumira/main/json-schema/blumira-webhook-endpoint-update-record-schema.json",
  "title": "webhook_endpoint_update_record",
  "x-generated": "2026-09-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blumira-openapi.yml#/components/schemas/webhook_endpoint_update_record",
  "properties": {
    "auth_header_enabled": {
      "type": "boolean"
    },
    "auth_header_value": {
      "type": [
        "string",
        "null"
      ]
    },
    "custom_headers": {
      "additionalProperties": {
        "type": "string"
      },
      "type": [
        "object",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "filters": {
      "items": {
        "$ref": "#/$defs/webhook_endpoint_filter_create_record"
      },
      "type": "array"
    },
    "remove_custom_headers": {
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "schema_version": {
      "type": "string"
    },
    "url": {
      "format": "uri",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "webhook_endpoint_filter_create_record": {
      "properties": {
        "event_type": {
          "type": "string"
        },
        "finding_types": {
          "description": "Finding type slugs to filter on. Valid values: operational, risk, suspect, threat, system. The alias \"alert\" is accepted during transition and canonicalized to \"system\" before persisting.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "priorities": {
          "description": "Finding priority as an integer: 1 (P1), 2 (P2), 3 (P3). The console displays P1–P3.",
          "items": {
            "enum": [
              1,
              2,
              3
            ],
            "type": "integer"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "severities": {
          "description": "Case severity. Valid values: critical, high, medium, low.",
          "items": {
            "enum": [
              "critical",
              "high",
              "medium",
              "low"
            ],
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "event_type"
      ],
      "type": "object"
    }
  }
}