bootloader

Return current configuration of uboot password protection:

GET https://192.168.2.1/api/bootloader
curl -X GET \
  https://192.168.2.1/api/bootloader\?token\=3C76913B9E67274D6745919313ADB73 \

Example of a result json:

{
  "code" : 200,
  "result" : {
    "lock" : {
      "enabled" : false,
      "supported" : true
    }
  },
  "status" : "success"
}

Change uboot password:

POST https://192.168.2.1/api/bootloader
curl -X POST \
  https://192.168.2.1/api/bootloader\?token\=3C76913B9E67274D6745919313ADB73 \
  -H 'Content-Type: application/json' \
  -d '{
    "lock" : {
      "password" : ""
    }
}'

Result:
{
  "code": 200,
  "status": "success"
}