Support for device environment variables

Yes they were supported but didn’t work, if I recall correctly, due to the database error, whereas config variables did in fact appear to work. In any case I’m not having problems setting them now.

I was also stuck on this one…
Actually, the field ‘name’ is not implemented on the openBalena API Environment settings yet…

I had to use the field ‘env_var_name’ to get it to work :

curl -X POST ‘https://api.myopenbalena.com/v5/application_config_variable
-H ‘authorization: Bearer <TOKEN>’
-H ‘content-type: application/json’
–data-binary '{“application”: <APPID>,“env_var_name”:"<KEY>",“value”:"<VALUE>"}

It seems to be fixed in the latest version though : https://github.com/balena-io/open-balena-api/commit/ef31eaefa2c75a3e6f61268bdc60af4b1e39f970

1 Like