Check

Function

This API is used to check for upgrade.

Request Message

None.

Sample:

POST /API/Maintenance/FtpUpgrade/Check HTTP/1.1
{
    "version":"1.0",
    "data":{}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
has_new_firmwareboolWhether has a new upgrade firmware.
current_verstringCurrent version.
new_versionstringNew version.
Upgrade_buttonboolWhether the update button can be clicked.
lang_strsstringUpdate package tips.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "Upgrade_button": true,
        "lang_strs": {},
        "has_new_firmware": true,
        "cur_version": "",
        "new_version": ""
    }
}

Error Code

See Response Messages Body and Common error_code for more information.