/plugins/{name}/update
0.2.38Unchanged since publicationRequest immediate installation of a plugin's newest version
settingsallUrbeStack requests immediate installation of the newest version of a plugin installed from the license server, regardless of whether the plugin's automatic updates are on. It first asks the license server for the plugin's newest version. If the license server is unreachable, UrbeStack uses the version on record.
The API returns HTTP 409 if the plugin was not installed from the license server, if no newer version is published, if version does not match the newest version, if the version requires a newer version of UrbeStack, or if this server's license does not include the plugin. It also returns HTTP 409 if accept omits any additional API scopes the version requests or any panels where the version adds a view. That response includes version, scopes_added and panels_added.
The API returns HTTP 202 with name, version, from and started once urbestack-update.service starts. The installation will continue independently of the request. To follow the installation, use GET /plugins and check update. UrbeStack never rolls back a plugin. If the installation fails, UrbeStack will report the failure in update.problem and will not retry the installation automatically.
As a command
Run as root on the serverParameters
namepath ·PluginNameRequiredRequest body
JSON· 4 fieldsacceptobjectaccept.panelsarray of string, one of admin, reseller, useraccept.scopesarray of stringversionstring, matching ^[0-9]{1,6}\.[0-9]{1,6}\.[0-9]{1,6}$Example
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/plugins/alice/update" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"accept": {
"panels": [
"admin"
],
"scopes": [
"*"
]
},
"version": "0.0.1"
}'202 Accepted{
"from": "text",
"name": "alice",
"started": true,
"version": "0.0.1"
}Errors
10 errors, each a status and a sentence400--accept-<k> is a comma-separated list of names400--name is required400--version is major.minor.patch400Invalid setting key400accept.<k> is a list of names400version must be major.minor.patch401Authentication required404Setting '<key>' not found404The license server has no plugin named <name>409An update run is in progressurbestack.com/docs/api/post-plugins-name-update/