Update an add-on
supervisor_update_addonApplies an available Home Assistant add-on update when update_available is true by downloading and installing the new version; restore a backup to revert.
Instructions
Update an add-on to its latest available version.
Calls POST /addons/<slug>/update, which downloads and installs the new
version over the network; the previous version is only recoverable from
a backup taken beforehand.
Use when: update_available is true for the add-on and the new version
should be applied.
Not for: reverting an update — restore a backup via
supervisor_restore_backup instead; there is no dedicated rollback
call.
Returns: Supervisor's update-job result.
Errors: {"error": "invalid_slug"} for a bad slug; {"error": "SUPERVISOR_TOKEN not set — Nexus must run as HA add-on for Supervisor API"} when the token env var is missing;
{"error": "HTTP <status>", "detail": ...} on a failed update.
Limits: downloads the new version over the network; no automatic
rollback on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Add-on slug to update, e.g. from `supervisor_list_addons`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||