{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kernelcad-com/json-schema/kernelcad-com-post-server-files-upload-request-schema.json",
  "title": "PostServerFilesUploadRequest",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/kernelcad-com-openapi-generated.yml#/components/schemas/PostServerFilesUploadRequest",
  "type": "object",
  "properties": {
    "gcode_path": {
      "type": "string",
      "description": "Path to the .gcode file on disk."
    },
    "protocol": {
      "type": "string",
      "description": "Protocol to use (must be \"moonraker\" for this endpoint)."
    },
    "host": {
      "type": "string",
      "description": "Printer hostname or IP."
    },
    "port": {
      "type": "number",
      "description": "Override the protocol default port."
    },
    "api_key": {
      "type": "string",
      "description": "OctoPrint API key (Settings -> API)."
    },
    "access_code": {
      "type": "string",
      "description": "Bambu LAN-mode access code (printer settings -> LAN Only Mode)."
    },
    "serial": {
      "type": "string",
      "description": "Bambu printer serial number (required to start a print unless start_print is false)."
    },
    "model_3mf_path": {
      "type": "string",
      "description": "bambu-lan only: model .3mf from export format '3mf' to package the G-code into (the uploaded .gcode.3mf)."
    },
    "printer": {
      "type": "string",
      "description": "Printer profile id; checked against protocol before upload."
    },
    "filename": {
      "type": "string",
      "description": "Uploaded file name (default: 'kernelcad.gcode'; ..."
    }
  }
}