/settings/{key}
0.1.0Unchanged since publicationSet a setting by key
settingsallRequires an administrator token with the settings scope. Returns the resulting setting as key and value. Run a rebuild after changing a setting whose catalog entry has acts set to rebuild. The catalog is available through GET /settings.
Returns 400 if the request body omits value. UrbeStack rejects unknown keys and suggests a known key when it finds a close match. It also rejects changes to secrets it generates for its own use.
On a DNS distribution network with multiple nodes, change dns.nameservers through the network. panel.timezone must be one of the timezones returned by GET /settings. You can turn off telemetry.share only if your license allows it. When you enable security.require_second_factor_admins, administrators can continue using their existing sessions and must use a second factor at their next sign-in.
php.default_version applies to domains without their own PHP version and must name an installed, visible version. Setting php.versions.legacy_enabled updates php.versions.hidden to hide legacy versions omitted from the supplied list. Set jobs.keep_days to 0 to retain jobs indefinitely. A finite jobs.keep_days must be at least jobs.show_days. For this comparison, UrbeStack uses 365 days for an absent jobs.keep_days and 30 days for an absent jobs.show_days.
Changes to firewall.enabled apply or remove UrbeStack's firewall rules immediately. A change to ssh.port takes effect immediately and supports rollback. UrbeStack checks for conflicts between ssh.port and panel.port. While a firewall rollback is armed, UrbeStack rejects changes to an existing ssh.port or panel.port.
As a command
Run as root on the serverParameters
keypath ·string, matching ^[a-z][a-z0-9_]{0,31}(\.[a-z][a-z0-9_]{0,31}){0,3}$RequiredRequest body
JSON· 1 fieldvaluevalue or nullRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X PUT "$API/settings/panel.port" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"value": 8443
}'200 OK{
"key": "panel.port",
"value": 8443
}Errors
32 errors, each a status and a sentence400'<zone>' is not a zone this machine knows: timedatectl list-timezones names them400--value or --value-stdin is required400<key> is made by the panel for its own use and is not set from outside400A new job is queued or running400Domain name required400Domain name too long400Give --value or --value-stdin, not both400Invalid <what>: 400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid port400Invalid setting key400Job parameters must be an object400PHP <version> cannot be the default: it is hidden from new choices on this server400PHP <version> cannot be the default: it is not installed on this server400Unknown job type400Unknown setting '<key>'400body is missing required field value400jobs.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 good401Authentication required404Setting '<key>' not found409<key> cannot take that value: <SECOND>{<k>}{on} <sp> (<k>). <SECOND>{<k>}{move}, or choose another409<key> cannot take that value: the panel listens on port <port> (panel.port). Move the panel first, or choose another409<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)409A change is already armed for revert (409Sharing is required with this license.409The panel cannot take port <port>: 409The panel cannot take port <port>: <why>409These 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-nameserverurbestack.com/docs/api/put-settings-key/