Set auto backup
1. API Description
This API is used to set auto backup.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/general/set-auto-backup
- V2.5.0 and below: POST [ip]/mwapi/set-auto-backup
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
Name | Required | Type | Description |
---|---|---|---|
autoBackup | Yes | Int | Whether to enable auto backup. 0: No; 1: Yes |
backupSchedule | Yes | Int | Backup schedule 0: Upload always 1: Upload only during the specified time period |
backupStartTime | Yes | Int | The start time of the specified time period everyday, in ms |
backupEndTime | Yes | Int | The end time of the specified time period everyday, in ms |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
4. Example
Setting to start auto backup during the specified time period everyday.
Input Example
{
"autoBackup":1,
"backupSchedule":1,
"backupStartTime":1665198834993,
"backupEndTime":1663927900000
}
Output Example
{
"status": 0,
}
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 |
---|---|---|
49 | MW_STATUS_INVALID_DATA | The parameters are missing or incorrect |