Upload firmware

1. API Description

This API is used to upload firmware. The upload file format should be .mwf.

Request mode: POST [ip]/api/system/upload-fw

Administrator Rights Logged-in
Yes Yes

2. Input Parameters

Binary encapsulated attachment data.

3. Output Parameters

Name Type Description
status Int Status code
code String Status description
need-clean-data Boolean Whether user data is cleared when upgrading
true: Yes; false: No
up-to-date Boolean Whether the firmware is the latest version
true: Yes; false: No
version String The firmware version to upload
size Int The firmware size to upload

4. Example

Uploading firmware.

Input Example
------WebKitFormBoundaryIQYfOLWb1KdjY6f3
Content-Disposition: form-data; name="file"; filename="usb_fusion_rev_a_2_5_0.mwf"
Content-Type: application/octet-stream


------WebKitFormBoundaryIQYfOLWb1KdjY6f3--
Output Example
{
    "status": 0,
    "code": "Success",
    "need-clean-data": false,
    "up-to-date": false,
    "version": "2.5.0",
    "size": 258818308
}

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
23 MW_STATUS_FILE_TYPE_ERROR The file is error

results matching ""

    No results matching ""

    results matching ""

      No results matching ""