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 ‘
-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 :

1 Like