To upgrade the device firmware send a HTTP POST to /api/edge/upgrade.json?header=text%2Fhtml&noraw=1&X-CSRF-TOKEN=X-CSRF-Token as a multipart/form-data request with the qqfile key containing a valid .tar firmware file.
This method is CSRF protected so also requires a X-CSRF-TOKEN (see Sensitive Requests (CSRF Protection)).
It does not support a HTTP GET.
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
|
Unknown hard-coded value. |
|
Number |
|
Unknown hard-coded value. |
|
String |
A 256-bit hexadecimal CSRF token |
The Cross-Site Request Forgery (CSRF) token from a cookie set during login. |
| Name | Type | Values | Description |
|---|---|---|---|
|
Object |
|
The upgrade result information. |
|
Array (String) |
Array of |
An array of the errors that occurred. |
|
Boolean |
|
Whether the API request was successful. |
-----------------------------1201211059169276340197013685
Content-Disposition: form-data; name="qqfile"; filename="ER-e300.v2.0.9-beta.4.5305682.tar"
Content-Type: application/x-tar
vmlinux.tmp................{"UPGRADE": {"success": "1"}, "success": true}