Updates API

System package updates and NexusPanel self-updates with live progress streaming.

All endpoints are prefixed with /api/updates. Admin only.


System Packages

MethodPathDescription
GET/updatesCheck available updates
POST/updates/applyApply all updates
POST/updates/apply/:nameApply single package
GET/updates/searchSearch packages
GET/updates/info/:namePackage info
GET/updates/securitySecurity advisories
GET/updates/historyUpdate history

Panel Updates

MethodPathDescription
GET/updates/panel-checkCheck for panel updates
POST/updates/panel-applyApply panel update (SSE stream)
GET/updates/changelogChangelog

Request/Response

GET /updates

{
  "updates": [
    { "name": "openssl", "current": "3.0.7", "available": "3.0.12", "security": true }
  ],
  "total": 5,
  "security": 2
}

POST /updates/apply/:name

Response is streamed via Server-Sent Events (SSE):

data: {"type":"start","package":"openssl"}
data: {"type":"output","line":"Updating openssl-3.0.12..."}
data: {"type":"output","line":"Complete!"}
data: {"type":"done","success":true}

GET /updates/panel-check

{
  "currentVersion": "1.35.8",
  "latestVersion": "1.35.8",
  "updateAvailable": true,
  "changelog": "..."
}

POST /updates/panel-apply

Also streams via SSE. Runs update.sh or upgrade.sh on the server.


Part of NexusPanel API Reference

← Back to Documentation