Interface Update Commands¶
Commands use the standard TCP request envelope: command, data, extID, and authenticated __token. A successful response uses the standard envelope extID, status, and data. The examples below show data values; the outer envelope is shown once here:
{"command":"MngGetInterfaceUpdateStatus","data":{},"extID":"if-1","__token":"<manager-jwt>"}
{"extID":"if-1","status":200,"data":{"current_version":"1.25.0","active_release":"1.25.0","source":"local","previous_release":"1.24.0","previous_source":"local","state_error":"","can_update":true,"pin_required":true,"operation":{"id":"","action":"","release":"","status":"idle","stage":"idle","error":"","progress":0,"started_at":0,"finished_at":0,"bytes_received":0,"bytes_total":0}}}
Read commands permit SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, and SESSION_CRM_ADMIN, subject to manager access resolution. Mutations permit SESSION_ADMIN and SESSION_CRM_ADMIN only when the resolved manager has super_admin scope.
MngGetInterfaceUpdates¶
Refreshes the remote catalog and returns it merged with locally installed releases. It selects latest_version from stable releases by build timestamp (with release name as a tie-breaker), not semantic-version ordering. If the registry cannot be fetched or validated, registry_available is false and registry_error contains the sanitized error; local releases remain represented. update_available is true when the selected stable latest release is newer by build timestamp than the active local release (or when no local release is active).
Request data has no command-specific fields; send {}. The response is status 200 with the full state shape below, including pin_required. A release row has all catalog/installation fields shown here:
{
"current_version":"1.25.0",
"active_release":"1.25.0",
"source":"local",
"previous_release":"1.24.0",
"previous_source":"local",
"state_error":"",
"can_update":true,
"pin_required":true,
"registry_available":true,
"registry_error":"",
"latest_version":"1.26.0",
"update_available":true,
"releases":[{"release":"1.26.0","version":"1.26.0","channel":"stable","commit":"0123456789abcdef0123456789abcdef01234567","created_at":"2026-10-26T12:00:00.000Z","installed":false,"active":false,"previous":false,"archive_bytes":123456,"sha256":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},
{"release":"1.25.0","version":"1.25.0","channel":"stable","commit":"0123456789abcdef0123456789abcdef01234567","created_at":"2026-10-25T12:00:00.000Z","installed":true,"active":true,"previous":false,"archive_bytes":123456,"sha256":"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"},
{"release":"1.24.0","version":"1.24.0","channel":"stable","commit":"0123456789abcdef0123456789abcdef01234567","created_at":"2026-10-24T12:00:00.000Z","installed":true,"active":false,"previous":true,"archive_bytes":123456,"sha256":"cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"}],
"operation":{"id":"","action":"","release":"","status":"idle","stage":"idle","error":"","progress":0,"started_at":0,"finished_at":0,"bytes_received":0,"bytes_total":0}
}
current_version is the active local release, or the server's legacy configured interface version when no local release is active. source is local or cdn. previous_source is none, cdn, or local. state_error reports invalid persisted local state or sanitized initialization/storage failures; it is empty when there is no such error. can_update is false when the manager lacks super-admin scope or storage is not ready. pin_required indicates whether interface mutations require the updater PIN; the PIN is never returned. The release list is sorted by build time descending, then release name descending. Each row's release is the versioned directory identifier, version is the frontend package version, channel is stable or dev, and commit is the full Git commit hash. created_at is the manifest's createdAt; archive_bytes and sha256 describe the package archive. installed indicates a local package, active identifies the selected local package, and previous identifies the protected local rollback target. Local metadata takes precedence when a release is also in the remote catalog.
MngGetInterfaceUpdateStatus¶
Returns local selection and operation state without contacting the registry. Request data is {}. The response is status 200; it contains current_version, active_release, source, previous_release, previous_source, state_error, can_update, and operation with exactly the fields and meanings above. It does not return registry_available, registry_error, latest_version, update_available, or releases; it includes pin_required in addition to the common state fields.
Mutating commands¶
MngInstallInterfaceUpdate, MngActivateInterfaceUpdate, MngRollbackInterfaceUpdate, and MngRemoveInterfaceUpdate return status 202 once a background operation is admitted. Their request and successful response shapes are:
{"release":"1.26.0","activate":true,"pin":"012345"}
When pin_required is false, omit pin. When it is true, include the configured 4–6 digit string for each mutation, including activation, rollback and removal. A missing PIN returns UPDATE_PIN_REQUIRED; an incorrect PIN returns UPDATE_PIN_INVALID. The request value is redacted in the product journal. Managers who do not know the PIN should contact their platform provider.
{"accepted":true,"operation_id":"0123456789abcdef0123456789abcdef","release":"1.26.0"}
release must be a valid release identifier (version-like major.minor.patch, optionally followed by a prerelease suffix) for install, activate, and remove. activate is optional boolean and applies to install only; it defaults to true. With false, install leaves the package installed but does not change the active selection. Activate and remove require release to be installed. Rollback requires neither release nor activate; the returned release is the resolved prior release/source target.
| Command | Effect |
|---|---|
MngInstallInterfaceUpdate |
Fetches the manifest for the specified release if not installed, verifies and extracts its archive, and activates by default. A remote catalog is not required for installation by release identifier. |
MngActivateInterfaceUpdate |
Verifies and selects an installed release. |
MngRollbackInterfaceUpdate |
Restores the previous local release or CDN source. |
MngRemoveInterfaceUpdate |
Removes an installed release unless it is active or the previous local release. |
Installation resolves ion-interface-<release>.manifest.json and its validated archive filename under the built-in HTTPS distribution base. The manifest release must match the requested identifier; archive and per-file sizes and SHA-256 hashes are checked. If discovery is unavailable, an explicit release can still be installed. A missing manifest/archive is reported asynchronously as INTERFACE_DOWNLOAD_HTTP_404.
Only one operation can run at a time. The operation returned by either read command contains id, action (install, activate, rollback, or remove), release, status (running, completed, or failed; initially idle), stage, error, progress (0–100), started_at, finished_at (Unix timestamps, zero when unset), bytes_received, and bytes_total.
For activate and remove, send data: {"release":"1.26.0"}. For rollback, send data: {}. A rollback to CDN returns release: ""; the source is confirmed through the next status response.
action and release are empty before any operation. The allowed stage values are idle, fetching_catalog, fetching_manifest, downloading, verifying, extracting, activating, removing, completed, and failed. error is empty unless an operation fails. Byte counters describe archive download progress and are zero before a download; progress is informational and does not indicate completion until status is completed. id is the operation identifier returned as operation_id by admission.
Errors¶
Error responses use data: {"error":"<code>"}. The following statuses are returned by mutation admission:
| Status | Error codes | Meaning |
|---|---|---|
400 |
INVALID_DATA, INTERFACE_INVALID_RELEASE, INTERFACE_INVALID_ACTION |
Required fields are absent or malformed, or action/release syntax is invalid. |
403 |
NOT_ENOUGH_RIGHTS |
Session/access scope does not permit the operation. |
403 |
UPDATE_PIN_REQUIRED |
The server requires a PIN and none was supplied. |
403 |
UPDATE_PIN_INVALID |
The PIN is malformed or incorrect. |
429 |
AUTH_RATE_LIMITED |
PIN attempt limit is active; response data includes retry_after_seconds. |
503 |
SECURITY_GUARD_UNAVAILABLE |
PIN attempt protection is unavailable; the mutation was not started. |
409 |
INTERFACE_UPDATE_BUSY, INTERFACE_RELEASE_IN_USE, INTERFACE_RELEASE_NOT_INSTALLED, INTERFACE_NO_PREVIOUS_RELEASE |
Operation conflicts with current activity or selected state. |
503 |
INTERFACE_STORAGE_UNAVAILABLE |
Release storage/service is not ready. |
500 |
INTERFACE_UPDATE_START_FAILED and other unexpected admission failures |
The operation could not be started. |
Example:
{"extID":"if-2","status":409,"data":{"error":"INTERFACE_UPDATE_BUSY"}}
After acceptance, download, catalog, manifest, checksum, archive, file, and activation failures are reported in operation.error with operation.status set to failed, rather than as a new response to the original request. The error is a sanitized INTERFACE_... code; it can include HTTP status, DNS, connection, timeout, or TLS failure codes. Poll the status command to retrieve it. Operation details are volatile across engine restart.