{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/contabo/main/json-schema/contabo-reinstall-instance-request-schema.json",
  "title": "ReinstallInstanceRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-openapi.yml#/components/schemas/ReinstallInstanceRequest",
  "type": "object",
  "properties": {
    "imageId": {
      "type": "string",
      "description": "ImageId to be used to setup the compute instance."
    },
    "sshKeys": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      },
      "description": "Array of `secretId`s of public SSH keys for logging into as `defaultUser` with administrator/root privileges. Applies to Linux/BSD systems. Please refer to Secrets Management API."
    },
    "rootPassword": {
      "type": "integer",
      "format": "int64",
      "description": "`secretId` of the password for the `defaultUser` with administrator/root privileges. For Linux/BSD please use SSH, for Windows RDP. Please refer to Secrets Management API."
    },
    "userData": {
      "type": "string",
      "description": "[Cloud-Init](https://cloud-init.io/) Config in order to customize during start of compute instance."
    },
    "defaultUser": {
      "type": "string",
      "enum": [
        "root",
        "admin",
        "administrator"
      ],
      "description": "Default user name created for login during (re-)installation with administrative privileges. Allowed values for Linux/BSD are `admin` (use sudo to apply administrative privileges like root) or `root`. Allowed values for Windows are `admin` (has administrative privileges like administrator) or `administrator`."
    },
    "applicationId": {
      "type": "string",
      "description": "Application ID"
    }
  },
  "required": [
    "imageId"
  ]
}