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 : Rename `env_var_name` to `name` to match cloud · balena-io/open-balena-api@ef31eae · GitHub

1 Like