Get your free beta license ↗
API operation · updates group
POST

/software/update

First published 5 Dec 20260.2.39Unchanged since publication

Request an immediate update of the software UrbeStack keeps updated

Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsall
Answers202 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

Run as root on the server

Request body

JSON· 1 field
namesarray 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

See the API overview for how to set $API and $TOKEN.
Request
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

5 errors, each a status and a sentence
400A piece of software is named like httpd, php84 or mariadb
400names must be a list
401Authentication required
404This distribution has no piece of software named <o.name>.
409An update run is in progress
Generated from release 0.2.39 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.39 on 5 Dec 2026.
urbestack.com/docs/api/post-software-update/