Restart server

This function reboots the server.

SecurityBasicAuth
Request
query Parameters
force
integer
Default: 0

Whether to use a forceful reboot.

  • 1 - Use a forceful reboot.
  • 0 - Do not use a forceful reboot.

Warning:

A forceful reboot may result in data loss if active processes exist on the server.

Enum: 0 1
Example: force=0
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/reboot
Request samples
whmapi1 --output=jsonpretty \
  reboot
Response samples
application/json
{
  • "metadata": {
    • "command": "reboot",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}