/software/update
0.2.39Unchanged since publicationRequest an immediate update of the software UrbeStack keeps updated
settingsallUrbeStack 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 serverRequest body
JSON· 1 fieldnamesarray of string, matching ^[a-z][a-z0-9_]{1,31}$Example
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/software/update" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"names": [
"text"
]
}'202 Accepted{
"software": [
"text"
],
"started": true
}Errors
5 errors, each a status and a sentence400A piece of software is named like httpd, php84 or mariadb400names must be a list401Authentication required404This distribution has no piece of software named <o.name>.409An update run is in progressurbestack.com/docs/api/post-software-update/