Resources | balena. The GET and POST commands seem to work slightly differently to the PATCH curl commands for the Balena API. GET and POST take a “device id”, whereas PATCH takes just an “id” for the environment variable and it’s not clear what id this should be. If the user doesn’t provide an “id” with the PATCH command, they can reset all device-specific environment variables across all fleets accidentally (as I did! ). Could you please make the documentation clearer for what id the PATCH command requires and also have some sort of big red warning that getting the id wrong or not setting it will result in all fleet variables getting reset.
Alternatively and better long term: change the behaviour of the API such that it doesn’t allow a user to reset all the device variables across all fleets - should error if ID is not provided, rather than proceed and replace all variables.