# POST /software/update

First published 5 Dec 2026 (release 0.2.39) · Unchanged since publication

UrbeStack release 0.2.39 API operation in the updates group.

Request an immediate update of the software UrbeStack keeps updated

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

UrbeStack records a request for the updater and starts urbestack-update.service, which updates the pieces of software named in names. If you omit names, it updates every installed piece of software selected for the nightly run. The update will continue after this operation returns. As with urbestack-software-update, the updater handles one piece of software at a time. It never updates a piece of software with a held package or moves it to another major version. It restarts the services that were running on the piece of software and stops if a service does not come back. Read the result from GET /software in last_run and in each entry's last field.

The API returns HTTP 404 if this distribution does not provide a requested name. It returns HTTP 409 if a requested piece of software is not installed on this server, if you omit names and no piece of software is selected for the nightly run, or if another update run is in progress.

## As a command

- [urbestack-software-update-now](https://urbestack.com/docs/commands/urbestack-software-update-now.md): The command records a request for the updater and starts urbestack-update.service, which updates the pieces of software named with --name.

## Request body

JSON.

- `names` (array of string, matching ^[a-z][a-z0-9_]{1,31}$): This field lists the names of the pieces of software to update, as returned by GET /software. Omit it to update every installed piece of software selected for the nightly run.

## 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/software/update" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "names": [
      "text"
    ]
  }'
```

Response, 202 Accepted:

```
{
  "software": [
    "text"
  ],
  "started": true
}
```

## Errors

- 400: A piece of software is named like httpd, php84 or mariadb
- 400: names must be a list
- 401: Authentication required
- 404: This distribution has no piece of software named <o.name>.
- 409: An update run is in progress
