# POST /plugins/{name}/update

First published 3 Dec 2026 (release 0.2.38) · Unchanged since publication

UrbeStack release 0.2.39 API operation in the plugins group.

Request immediate installation of a plugin's newest version

- Who may call it: administrator
- Token scope, any of: settings, all
- Answers: 202 Accepted

UrbeStack 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

- [urbestack-plugin-update-now](https://urbestack.com/docs/commands/urbestack-plugin-update-now.md): This command 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.

## Parameters

- `name` (path, PluginName, required)

## Request body

JSON.

- `accept` (object): This object lists the additional API scopes the administrator accepts and the panels where the administrator accepts a new view.
  - `panels` (array of string, one of admin, reseller, user): The panels accepted, as listed in update.available.panels_added.
  - `scopes` (array of string): The API scopes accepted, as listed in update.available.scopes_added.
- `version` (string, matching ^[0-9]{1,6}\.[0-9]{1,6}\.[0-9]{1,6}$): The optional version field accepts a version in major.minor.patch form. If supplied, it must match the plugin's newest version.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
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"
  }'
```

Response, 202 Accepted:

```
{
  "from": "text",
  "name": "alice",
  "started": true,
  "version": "0.0.1"
}
```

## Errors

- 400: --accept-<k> is a comma-separated list of names
- 400: --name is required
- 400: --version is major.minor.patch
- 400: Invalid setting key
- 400: accept.<k> is a list of names
- 400: version must be major.minor.patch
- 401: Authentication required
- 404: Setting '<key>' not found
- 404: The license server has no plugin named <name>
- 409: An update run is in progress
