# set.system.update_firmware
Initiates a firmware upgrade process.
**Upgrade Flow:**
- The client sends the initial JSON request.
- The server responds with a `"msg": "ready"` to indicate it is prepared for the file transfer.
- The client sends the firmware file, prefixed with a 4-byte little-endian integer representing the total file size.
- After the transfer is complete, the server sends a final confirmation, and the device reboots to apply the update.
## Examples
### Request
```json
{
"cmd": "set.system.update_firmware",
"ts": 419304089,
"token": "Y0Ijoro/",
"account": "super"
}
```
### Initial Response
```json
{
"code": 0,
"when": 1672281726,
"msg": "ready",
"desc": "set.system.update_firmware"
}
```