Improve this doc
Detailed information for resources

Available fields

id
application
name
value

Examples

Get all fleet config variables for an application

curl -X GET \
"https://api.balena-cloud.com/v4/application_config_variable?\$filter=application%20eq%20<APP ID>" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" 

Create a fleet config variable

curl -X POST \
"https://api.balena-cloud.com/v4/application_config_variable" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" \
--data '{
    "application": "<APP ID>",
    "name": "<NAME>",
    "value": "<VALUE>"
}'

Update a fleet environment variable

curl -X PATCH \
"https://api.balena-cloud.com/v4/application_config_variable(<ID>)" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" \
--data '{
    "value": "<NEW VALUE>"
}'

Remove a fleet config variable

curl -X DELETE \
"https://api.balena-cloud.com/v4/application_config_variable(<ID>)" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>"