Servers
Set Default PHP Version
Set the given PHP version as the server's default. If already installed flips the OS default synchronously (returns 200); otherwise dispatches an install (returns 202).
Patch PHP Version
Apply patch (minor-version bump) for an installed PHP version. Asynchronous — dispatches PatchPHPVersion to the background queue.
Toggle OPCache for PHP Version
Enable or disable OPCache for a PHP version. Synchronous over SSH. Requires the write:servers scope and the server:manage-php permission.
Reboot Server
Initiates a graceful reboot of the specified server. This is an asynchronous operation — the server will briefly go offline during the reboot process. Requires the write:servers scope.
List Server Services
Returns the services managed on the server (Nginx, OpenLiteSpeed, PHP, Redis, Docker, Supervisor, MySQL/MariaDB, etc.) with their current status, version, and whether each can be restarted via the API. The…
Restart a Server Service
Restarts a single server service, addressed by name in the request body (e.g. nginx, lsws, php, redis, docker, supervisor, mysql, mariadb). For PHP servers running multiple versions, supply version to…
Disable a Server Service
Stops (disables) a single server service, addressed by name in the request body (e.g. nginx, mysql, redis, php, docker). For PHP servers running multiple versions, supply version to disambiguate. Only…
List Sudo Users
Returns a paginated list of all sudo users on the specified server. Requires the read:servers scope.
Create or Update Sudo User
Creates a new sudo user on the specified server, or updates an existing one if a user with the same username already exists (idempotent). This is an asynchronous operation —…
Delete Sudo User
Deletes the specified sudo user from the server. This is an asynchronous operation — the user will be in deleting status until fully removed. Requires the write:servers scope.
