Upload and Upgrade via LAN

555

# Upload and Upgrade via LAN

Path:

/api/uploadpackage

Method: POST

Content-type: multipart/form-data

API Description: This can be used to upgrade the standalone web.

Request

Name Type Example Description
f1 File update_a35_v1.70.3.1361_221746562aa9521e31f53497a5c9137a_448377498.zip Upgrade package

Note: Only the first request parameter is valid. You can use other names as long as the name of the upgrade package is correct.

Example img

Response

Name code msg
Type int String
Example 200 200 success
Description Response status code Description of the response status
Enumeration 200 200 success
Enumeration 400 50013 No request for multipart/form-data format check
50014 md5 check error
50012 version not matched
50015 integrity check error
Enumeration 500 50010 memory is not enough
50016 Failed to empty uploader folder
50011 The number of files is not equal to 1
50001 server error

Example

{
    "code": 200,
    "msg": "200 success"
}

# Upgrade Device via LAN

Path:

/api/upgrade

Method: POST

Content-type: application/json; charset=utf-8

API Description:

Upload the update.zip upgrade package to the directory ftp://terminal IP/update/, call the interface, and wait for the upgrade to complete. Upgrade via USB flash drive or internet starts automatically and there's no need to call the interface.

Request

Name Type Example Description
source String lan Upgrade device via LAN.

Example

{"source": "lan"}