{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "update_user_manager_user",
  "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 user to update"
    },
    "new_name": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "group": {
      "type": "string"
    },
    "shared_users": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "attributes": {
      "type": "string"
    },
    "caller_id": {
      "description": "Caller ID the user is restricted to (e.g. MAC)",
      "type": "string"
    },
    "otp_secret": {
      "description": "Base32 OTP shared secret for two-factor auth",
      "type": "string"
    },
    "comment": {
      "type": "string"
    },
    "disabled": {
      "type": "boolean"
    }
  },
  "required": ["name"],
  "additionalProperties": false
}
