I'm trying to unlock the locked firmware version for a device in my Electron product via a windows batch file.
here is what I have tried so far, and the responses:
Request 1 as per the Particle Cloud API Reference on unlocking product device firmware
curl -X PUT https://api.particle.io/v1/products/myproduct/devices/mydeviceID^
-d desired_firmware_version=null ^
-d flash=true ^
-d access_token=myaccesstoken^
-k
Request 2 (with quotes)
curl -X PUT https://api.particle.io/v1/products/myproduct/devices/mydeviceID^
-d desired_firmware_version="null" ^
-d flash=true ^
-d access_token=myaccesstoken^
-k
Responses (both the same)
{"ok":false,"code":500,"errors":["Cast to Number failed for value \"NaN\" (type number) at path \"version\" for model \"ProductFirmware\""]}
Is this a bug in the Particle cloud API?