{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/merlonix-com/json-schema/merlonix-com-asset-update-schema.json",
  "title": "AssetUpdate",
  "description": "Request body for updating an asset (all fields optional; TD-925).",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/merlonix-com-openapi.yml#/components/schemas/AssetUpdate",
  "type": "object",
  "properties": {
    "label": {
      "type": [
        "string",
        "null"
      ]
    },
    "client_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "client_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "check_interval_sec": {
      "type": "integer",
      "minimum": 60,
      "maximum": 86400
    },
    "ssl_enabled": {
      "type": "boolean"
    },
    "dns_enabled": {
      "type": "boolean"
    },
    "domain_enabled": {
      "type": "boolean",
      "description": "Toggle monitored domain-expiry (RDAP) checks."
    },
    "dnsbl_enabled": {
      "type": "boolean",
      "description": "Toggle monitored DNS-blocklist (DNSBL) checks."
    },
    "dns_security_enabled": {
      "type": "boolean",
      "description": "Toggle monitored DNSSEC + DANE/TLSA posture checks (informational)."
    },
    "security_headers_enabled": {
      "type": "boolean",
      "description": "Toggle the monitored HTTP security-header check (informational)."
    },
    "email_auth_enabled": {
      "type": "boolean",
      "description": "Toggle the monitored email-auth (SPF/DMARC/MTA-STS/BIMI) posture check."
    },
    "ct_watch_enabled": {
      "type": "boolean",
      "description": "Toggle Certificate-Transparency rogue/shadow-cert monitoring. Paid monitoring tiers only (team/agency/compliance)."
    },
    "agent_readiness_enabled": {
      "type": "boolean",
      "description": "Toggle monitored Agent-Readiness checks."
    },
    "mcp_health_enabled": {
      "type": "boolean",
      "description": "Toggle monitored MCP-server health checks."
    },
    "heartbeat_enabled": {
      "type": "boolean",
      "description": "Toggle the inbound heartbeat (dead-man's-switch) monitor."
    },
    "heartbeat_period_sec": {
      "type": "integer",
      "minimum": 1,
      "description": "Expected heartbeat interval in seconds."
    },
    "heartbeat_grace_sec": {
      "type": "integer",
      "minimum": 0,
      "description": "Tolerance in seconds before a missed beat is declared dead."
    },
    "port_enabled": {
      "type": "boolean",
      "description": "Toggle the outbound TCP-port monitor."
    },
    "port_check_port": {
      "type": "integer",
      "minimum": 1,
      "maximum": 65535,
      "description": "TCP port to probe on the asset's hostname."
    },
    "psi_enabled": {
      "type": "boolean",
      "description": "Toggle the PageSpeed Insights (Lighthouse) performance monitor. Paid monitoring tiers only (team/agency/compliance)."
    },
    "psi_check_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Optional override URL to measure with PageSpeed Insights; null clears it."
    },
    "health_enabled": {
      "type": "boolean",
      "description": "Toggle the application-health monitor. Paid monitoring tiers only (team/agency/compliance)."
    },
    "health_check_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "JSON health endpoint to poll; null clears it."
    },
    "health_check_config": {
      "type": [
        "object",
        "null"
      ],
      "description": "TD-941 application-health config ({ headers?, stale_after_sec? }); null clears it."
    },
    "crawl_enabled": {
      "type": "boolean",
      "description": "Toggle the broken-links / mixed-content crawler. Paid monitoring tiers only (team/agency/compliance)."
    },
    "crawl_root_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Optional crawl root URL; null clears the override."
    },
    "injection_scan_enabled": {
      "type": "boolean",
      "description": "Toggle the prompt-injection / hidden-text scan. Paid monitoring tiers only (team/agency/compliance)."
    },
    "uptime_check_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "is_active": {
      "type": "boolean"
    },
    "paused_reason": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500
    },
    "vendor_dependencies": {
      "type": "array",
      "maxItems": 11,
      "items": {
        "type": "string",
        "enum": [
          "stripe",
          "cloudflare",
          "aws",
          "openai",
          "anthropic",
          "vercel",
          "github",
          "shopify",
          "slack",
          "google_cloud",
          "azure"
        ]
      }
    }
  }
}