Reboot#
Beta version
The functionality is in beta. Features may change and may also work unstably.
The method reboots the instance.
The method uses the limits on the number of requests per second.
Request#
To reboot the instance, you have to execute a request at:
GET
{{apiUrl}}/waInstance{{idInstance}}/reboot/{{apiTokenInstance}}
For apiUrl, idInstance and apiTokenInstance request parameters, refer to the Before you start section.
Response#
Response parameters#
| Field | Type | Description |
|---|---|---|
isReboot | boolean | true - the instance has been rebooted; false - the reboot has not been performed (an error while stopping or starting the instance), repeat the request |
Response body example#
{
"isReboot": true
}
Reboot errors#
For a list of errors common to all methods, refer to the Common errors section
Request examples#
import requests
url = "{{apiUrl}}/waInstance{{idInstance}}/reboot/{{apiTokenInstance}}"
response = requests.get(url)
print(response.text.encode('utf8'))
curl --location '{{apiUrl}}/waInstance{{idInstance}}/reboot/{{apiTokenInstance}}'