{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "update_ppp_profile",
  "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_-]*$"
      }
    },
    "name": {
      "type": "string",
      "description": "Current name of the PPP profile to update"
    },
    "new_name": {
      "type": "string"
    },
    "local_address": {
      "type": "string"
    },
    "remote_address": {
      "type": "string"
    },
    "dns_server": {
      "type": "string"
    },
    "wins_server": {
      "description": "WINS server IP(s) pushed to clients",
      "type": "string"
    },
    "address_list": {
      "description": "Address list to add the remote address to",
      "type": "string"
    },
    "incoming_filter": {
      "description": "Firewall chain for incoming packets",
      "type": "string"
    },
    "outgoing_filter": {
      "description": "Firewall chain for outgoing packets",
      "type": "string"
    },
    "rate_limit": {
      "type": "string"
    },
    "session_timeout": {
      "description": "Max session duration, e.g. '1h'",
      "type": "string"
    },
    "idle_timeout": {
      "description": "Disconnect after this idle time, e.g. '5m'",
      "type": "string"
    },
    "use_encryption": {
      "type": "string",
      "enum": ["default", "yes", "no", "required"]
    },
    "use_mpls": {
      "description": "MPLS over the link policy",
      "type": "string",
      "enum": ["default", "yes", "no", "required"]
    },
    "use_compression": {
      "description": "Compression policy",
      "type": "string",
      "enum": ["default", "yes", "no"]
    },
    "change_tcp_mss": {
      "type": "string",
      "enum": ["default", "yes", "no"]
    },
    "only_one": {
      "type": "string",
      "enum": ["default", "yes", "no"]
    },
    "bridge": {
      "type": "string"
    },
    "bridge_horizon": {
      "description": "Bridge split-horizon group",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "bridge_path_cost": {
      "description": "Bridge port path cost",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "bridge_port_priority": {
      "description": "Bridge port priority",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "dhcpv6_pd_pool": {
      "description": "IPv6 prefix delegation pool name",
      "type": "string"
    },
    "on_up": {
      "description": "Script to run when the session connects",
      "type": "string"
    },
    "on_down": {
      "description": "Script to run when the session disconnects",
      "type": "string"
    },
    "comment": {
      "type": "string"
    }
  },
  "required": ["name"],
  "additionalProperties": false
}
