Schedule automatic reboots
1. API Description
This API is used to schedule automatic reboots for your device.
Request mode: POST [ip]/api/system/auto-reboot
Administrator Rights | Logged-in |
---|---|
Yes | Yes |
2. Input Parameters
Name | Required | Type | Description |
---|---|---|---|
enable | Yes | Boolean | Whether to enable auto-reboot true: Yes; false: No |
hour | Yes | Int | Time to auto-reboot, hour |
min | Yes | Int | Time to auto-reboot, minute |
week | Yes | [Array] | Weekly repeat 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
code | String | Status description |
4. Example
Scheduling automatic reboots for your device.
Input Example
{
"enable":true,
"hour":23,
"min":59,
"week":[1,2]
}
Output Example
{
"status": 0,
"code": "Success"
}
5. Error Code
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Status | Definition | Description |
---|---|---|
7 | MW_STATUS_INVALID_ARG | The parameters are missing or incorrect |