# PATCH /software/{name}

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

UrbeStack release 0.2.39 API operation in the updates group.

Set whether a piece of software is selected for the nightly run

- Who may call it: administrator
- Token scope, any of: settings, all
- Answers: 200 OK

UrbeStack stores whether the piece of software is selected for the nightly run. Every piece of software is selected for the nightly run by default. You can still request an update through POST /software/update for a piece of software taken out of the nightly run. The setting software.skip holds the names of the pieces of software taken out of the nightly run.

The API returns HTTP 404 for a name this distribution does not provide.

## As a command

- [urbestack-software-set](https://urbestack.com/docs/commands/urbestack-software-set.md): The command sets whether the piece of software named with --name is selected for the nightly run.

## Parameters

- `name` (path, string, matching ^[a-z][a-z0-9_]{1,31}$, required): The name identifies a piece of software returned by GET /software, such as httpd, php84, or mariadb.

## Request body

JSON.

- `automatic` (boolean, required): The value true selects the piece of software for the nightly run. The value false takes it out of 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 PATCH "$API/software/alice" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "automatic": true
  }'
```

Response, 200 OK:

```
{
  "automatic": true,
  "name": "alice"
}
```

## Errors

- 400: '<zone>' is not a zone this machine knows: timedatectl list-timezones names them
- 400: --automatic is on or off
- 400: --name is required
- 400: A new job is queued or running
- 400: A piece of software is named like httpd, php84 or mariadb
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid boolean
- 400: Invalid domain name
- 400: Invalid port
- 400: Invalid setting key
- 400: Job parameters must be an object
- 400: PHP <version> cannot be the default: it is hidden from new choices on this server
- 400: PHP <version> cannot be the default: it is not installed on this server
- 400: Unknown job type
- 400: Unknown setting '<key>'
- 400: automatic is required
- 400: jobs.keep_days (<keep>) may not be smaller than jobs.show_days (<show>): a job cannot be shown longer than it is kept; 0 keeps them for good
- 401: Authentication required
- 404: Setting '<key>' not found
- 404: This distribution has no piece of software named <o.name>.
- 409: <key> cannot take that value: <SECOND>{<k>}{on} <sp> (<k>). <SECOND>{<k>}{move}, or choose another
- 409: <key> cannot take that value: the panel listens on port <port> (panel.port). Move the panel first, or choose another
- 409: <s.subject> cannot take port <port>: 
- 409: <s.subject> cannot take port <port>: <why>
- 409: <s.subject> cannot take port <port>: it is the panel's port (panel.port)
- 409: A change is already armed for revert (
- 409: Sharing is required with this license.
- 409: The panel cannot take port <port>: 
- 409: The panel cannot take port <port>: <why>
- 409: These are the nameservers of a distribution network with several nodes, and every node lists the same ones. To remove a nameserver or move it to another node, use the actions beside its name on DNS zones › Nameservers & addresses, or urbestack-dns-nameserver
