API referenceSections

PanelUpdate

PanelUpdate object
  • installed object | null required

    Null for a development build, which checks but cannot update

    • version string required
    • channel string required
  • settings PanelUpdateSettings required
  • default_feed_url string required
  • channel string required

    The channel checked

  • checked_at string (date-time) | null required
  • check_error string required
  • check_error_code string required

    Stable code of the last check's failure (PANEL_UPDATE_*), empty when it went through; check_error is the detail.

  • latest object | null required
    • version string required
    • channel string required
    • severity string required
      Allowed values: "normal" "security"
    • notes map<string, string> required

      Signed release notes per language (en, vi)

    • notes_url string required
    • built_at string (date-time) required
    • min_upgrade_from string required
  • update_available boolean required

    latest is newer than installed (never an older one)

  • blocker string required

    Why the update cannot start now: PANEL_UPDATE_DEV_BUILD, PANEL_UPDATE_OFFLINE, PANEL_UPDATE_BUSY, PANEL_UPDATE_NONE, PANEL_UPDATE_NEEDS_INTERMEDIATE, PANEL_UPDATE_NO_LOCAL_SERVER; empty when it can

  • local_server object | null required

    The server this panel runs on (its broker runs the update)

    • id string required
    • name string required
  • op PanelUpdateOp | null required
  • next_window string (date-time) | null required
  • server_time string (date-time) required
  • server_zone string required
  • manual_command string required

    The same update by hand on the panel's machine

  • rollout_for string required
  • rollout_id string required
  • rollout_error string required
  • repair object | null optional

    How to repair this installation (D25); null for a development build. msi_repair_fails: the machine was installed by an MSI older than 0.9.143 and runs a newer release, so repairing with that MSI (msiexec /fa, Apps & features) fails with 1603 (R15-4); use command or a newer MSI

    • command string required

      Repairs the running release, in an elevated PowerShell

    • msi_version string required

      Release of the MSI in Program Files\Zopanel\installer; empty when not installed by an MSI

    • msi_repair_fails boolean required

Used by

GET/api/v1/tenants/{tid}/panel-updateThe panel's own updates: installed release, what the feed offers (version, severity, signed notes), the policy and the current update (ADR 0145)
PUT/api/v1/tenants/{tid}/panel-update/settingsFeed, channel, offline mode, what installs by itself and in which window, and the agents' rollout after an update (ADR 0145)
POST/api/v1/tenants/{tid}/panel-update/checkRead the feed now; the manifest and notes must carry a trusted release signature (PANEL_UPDATE_CHECK_FAILED, PANEL_UPDATE_OFFLINE). A newer release seen first raises update.available
POST/api/v1/tenants/{tid}/panel-update/apply 202Install the offered release: a panel.update job for the broker on the panel's own machine, which runs zopanel-setup update -feed detached (backup, switch, health check, rollback on failure). The panel restarts; the outcome is read back when it is up