{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "update_route",
  "type": "object",
  "properties": {
    "unset": {
      "description": "Properties to UNSET (RouterOS `!prop`), so they no longer apply — e.g. ['dst-address'] removes the destination-address match. snake_case or kebab-case. Not for setting a value.",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9_-]*$"
      }
    },
    "route_id": {
      "type": "string",
      "description": "\"*N\" or \"N\" from list output e.g. \"*3\""
    },
    "dst_address": {
      "description": "CIDR e.g. \"192.168.1.0/24\"",
      "type": "string"
    },
    "gateway": {
      "type": "string"
    },
    "distance": {
      "description": "1-255",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "scope": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "target_scope": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "routing_table": {
      "description": "Policy-routing table name (RouterOS v7); \"\" clears it",
      "type": "string"
    },
    "routing_mark": {
      "description": "Deprecated alias for routing_table (RouterOS v6 name)",
      "type": "string"
    },
    "comment": {
      "type": "string"
    },
    "disabled": {
      "type": "boolean"
    },
    "vrf_interface": {
      "type": "string"
    },
    "pref_src": {
      "type": "string"
    },
    "check_gateway": {
      "description": "\"ping\" or \"arp\"",
      "type": "string"
    },
    "suppress_hw_offload": {
      "description": "Exclude route from hardware (HW) offloading",
      "type": "boolean"
    },
    "type": {
      "description": "\"blackhole\" makes the route drop traffic; \"unicast\" turns a blackhole route back into a normal next-hop route.",
      "type": "string",
      "enum": ["unicast", "blackhole"]
    }
  },
  "required": ["route_id"],
  "additionalProperties": false
}
