{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "update_container",
  "type": "object",
  "properties": {
    "id": {
      "description": "Stable .id from fresh discovery; never a row number",
      "type": "string",
      "pattern": "^\\*[\\da-fA-F]+$"
    },
    "name": {
      "description": "Exact unique container name",
      "type": "string",
      "minLength": 1
    },
    "tag": {
      "description": "Exact unique image tag, not a regex; prefer id when images are shared",
      "type": "string",
      "minLength": 1
    },
    "interface": {
      "description": "VETH interface(s); verify target syntax and image interface names",
      "type": "string",
      "minLength": 1
    },
    "root_dir": {
      "description": "Dedicated root path on appropriate storage, not internal flash",
      "type": "string",
      "minLength": 1
    },
    "env": {
      "description": "Sensitive inline environment; verify support on the target",
      "type": "string"
    },
    "envlists": {
      "description": "Current CLI named environment lists",
      "type": "string"
    },
    "envlist": {
      "description": "Legacy singular envlist; exclusive with envlists",
      "type": "string"
    },
    "mount": {
      "description": "Inline mount expression supported by the target; not Docker syntax",
      "type": "string"
    },
    "mountlists": {
      "description": "Current CLI named mount lists",
      "type": "string"
    },
    "mounts": {
      "description": "Legacy mounts reference; exclusive with mountlists",
      "type": "string"
    },
    "cmd": {
      "description": "Command override; may contain secrets",
      "type": "string"
    },
    "entrypoint": {
      "description": "Entrypoint override; may contain secrets",
      "type": "string"
    },
    "workdir": {
      "type": "string"
    },
    "hostname": {
      "type": "string"
    },
    "dns": {
      "type": "string"
    },
    "user": {
      "type": "string"
    },
    "stop_signal": {
      "type": "string"
    },
    "devices": {
      "description": "Device passthrough; extra privilege requires explicit review",
      "type": "string"
    },
    "cpu_list": {
      "type": "string"
    },
    "memory_high": {
      "description": "Soft memory pressure threshold, not a hard cap",
      "type": "string"
    },
    "memory_max": {
      "description": "Hard memory limit only where supported; can terminate processes",
      "type": "string"
    },
    "logging": {
      "type": "boolean"
    },
    "start_on_boot": {
      "type": "boolean"
    },
    "comment": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
