{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "update_routing_rule",
  "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_-]*$"
      }
    },
    "rule_id": {
      "type": "string",
      "description": "Rule id, e.g. \"*3\""
    },
    "action": {
      "type": "string",
      "enum": ["lookup", "lookup-only-in-table", "drop", "unreachable"]
    },
    "table": {
      "type": "string"
    },
    "src_address": {
      "type": "string"
    },
    "dst_address": {
      "type": "string"
    },
    "routing_mark": {
      "type": "string"
    },
    "interface": {
      "type": "string"
    },
    "min_prefix": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "comment": {
      "type": "string"
    },
    "disabled": {
      "type": "boolean"
    }
  },
  "required": ["rule_id"],
  "additionalProperties": false
}
